/* with.lt 사용자 패널 / 관리자 / 로그인 / 일반 페이지 공용 - "LT의 이메일 공방"
   색 토큰과 .btn 은 redesign.css(.lt-ui)에서 오고, 이 파일은 그 위에서 부트스트랩 부품과 패널 뼈대를 같은 말투로 맞춘다.
   패널 계열(사용자/관리자)은 body.lt-panel, 로그인은 body.lt-sign 이 추가로 붙는다. 반드시 assets/css/style.css 뒤에 로드. */

/* ============ 예전 변수 -> 공방 토큰 ============ */
/* 차트 JS(chart.admin.js)는 :root 에서 색을 읽는다. 토큰은 body 에 있어서 여기엔 값을 직접 둔다 */
:root { --primary_color: #6a2c91; --secondary_color: #c9503f; --text_color: #17130e; }
[data-theme="dark"] { --primary_color: #c19ae8; --secondary_color: #ff9a8a; --text_color: #f1e9da; }

body.lt-ui {
    --bad: #b3261e;
    --warn: #9a5b00;
    /* assets/css/style.css 가 쓰는 변수 */
    --primary_color: var(--accent);
    --primary_opacity: var(--mark);
    --secondary_color: var(--accent);
    --sidebar_background_color: var(--paper-2);
    --cards_background_color: var(--card);
    --elements_text_color: var(--ink-2);
    --text_color: var(--ink);
    --text_muted: var(--muted);
    --background_color: var(--paper);
    --success_color: var(--ok);
    --border_color: var(--rule-soft);
    --font_size: 14.5px;
    /* 페이지별 인라인 스타일이 쓰는 변수 */
    --bg-body: var(--paper);
    --bg-card: var(--card);
    --bg-soft: var(--paper-2);
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --border-color: var(--rule-soft);
    --glass-bg: var(--paper);
    --glass-border: var(--rule);
    --card-radius: 6px;
    /* 부트스트랩 변수 */
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--rule-soft);
    --bs-link-color: var(--accent);
    --bs-emphasis-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--paper-2);
    --bs-secondary-bg: var(--paper-2);
}
[data-theme="dark"] body.lt-ui { --bad: #ff8a80; --warn: #f0b45a; }

body.lt-ui { display: block; min-height: 100vh; }
body.lt-ui ::-webkit-scrollbar { width: 10px; height: 10px; }
body.lt-ui ::-webkit-scrollbar-track { background: var(--paper-2); }
body.lt-ui ::-webkit-scrollbar-thumb { background: var(--rule-soft); border: 2px solid var(--paper-2); border-radius: 6px; }
.lt-ui .text-muted, .lt-ui .small.text-muted { color: var(--muted) !important; }
.lt-ui .text-dark { color: var(--ink) !important; }
.lt-ui .text-primary, .lt-ui .text-secondary { color: var(--accent) !important; }
.lt-ui .bg-primary, .lt-ui .bg-secondary { background-color: var(--accent) !important; color: var(--on-accent); }
.lt-ui .bg-white, .lt-ui .bg-light { background-color: var(--card) !important; }
.lt-ui .bg-light-primary { background-color: var(--mark) !important; color: var(--ink) !important; }
.lt-ui .text-success { color: var(--ok) !important; }
.lt-ui .text-danger { color: var(--bad) !important; }
.lt-ui .text-warning { color: var(--warn) !important; }
.lt-ui .border, .lt-ui .border-top, .lt-ui .border-bottom, .lt-ui .border-start, .lt-ui .border-end { border-color: var(--rule-soft) !important; }
.lt-ui hr { border-color: var(--rule-soft); opacity: 1; }
.lt-ui h4, .lt-ui h5, .lt-ui h6 { color: var(--ink); font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }
.lt-ui code { color: var(--accent); background: var(--paper-2); padding: .1em .35em; border-radius: 3px; font-family: var(--mono); font-size: .88em; }
.lt-ui pre { background: var(--paper-2); color: var(--ink); border: 2px solid var(--rule-soft); border-radius: 4px; padding: 14px 16px; font-family: var(--mono); }
.lt-ui pre code { background: none; padding: 0; color: inherit; }

/* 본문 링크 */
.lt-ui .dashboard-container p a:not(.btn),
.lt-ui .dashboard-container td a:not(.btn):not([class]),
.lt-ui .dashboard-container li a:not(.btn),
.lt-ui .sign-box a:not(.btn):not(.logo),
.lt-ui .lt-sheet a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ============ 버튼 보강 (.btn 기본은 redesign.css) ============ */
.lt-ui .btn-sm { padding: 5px 11px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
[data-theme="dark"] .lt-ui .btn-sm { box-shadow: 2px 2px 0 var(--accent); }
.lt-ui .btn-sm:focus, .lt-ui .btn-sm:focus-visible { box-shadow: 2px 2px 0 var(--ink) !important; }
[data-theme="dark"] .lt-ui .btn-sm:focus, [data-theme="dark"] .lt-ui .btn-sm:focus-visible { box-shadow: 2px 2px 0 var(--accent) !important; }
.lt-ui .btn-lg { padding: 12px 22px; font-size: 16px; }
.lt-ui .btn-light, .lt-ui .btn-white, .lt-ui .btn-default, .lt-ui .btn-secondary-subtle,
.lt-ui [class*="btn-outline-"]:not(.btn-outline-danger) { background: var(--card); border-color: var(--rule); color: var(--ink); }
.lt-ui .btn-light:hover:not(:disabled):not(.disabled), .lt-ui .btn-white:hover:not(:disabled):not(.disabled), .lt-ui .btn-default:hover:not(:disabled):not(.disabled),
.lt-ui [class*="btn-outline-"]:not(.btn-outline-danger):hover { background: var(--paper-2); border-color: var(--rule); color: var(--ink); }
.lt-ui .btn-success { background: var(--ok); border-color: var(--rule); color: #fff; }
.lt-ui .btn-success:hover:not(:disabled):not(.disabled) { background: var(--ok); filter: brightness(.92); color: #fff; }
.lt-ui .btn-warning { background: #e7b343; border-color: var(--rule); color: #17130e; }
.lt-ui .btn-warning:hover:not(:disabled):not(.disabled) { background: #e7b343; filter: brightness(.94); color: #17130e; }
.lt-ui .btn-info { background: var(--mark); border-color: var(--rule); color: var(--ink); }
.lt-ui .btn-info:hover:not(:disabled):not(.disabled) { background: var(--mark); filter: brightness(.95); color: var(--ink); }
.lt-panel .btn-danger, .lt-ui .btn-outline-danger { background: var(--bad); border-color: var(--rule); color: #fff; }
.lt-ui .btn-outline-danger { background: var(--card); color: var(--bad); }
.lt-panel .btn-danger:hover:not(:disabled):not(.disabled) { background: var(--bad); filter: brightness(.92); color: #fff; }
.lt-ui .btn-outline-danger:hover:not(:disabled):not(.disabled) { background: var(--bad); color: #fff; }
.lt-ui .btn-link { box-shadow: none; border-color: transparent; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.lt-ui .btn-link:hover:not(:disabled):not(.disabled), .lt-ui .btn-link:focus { box-shadow: none !important; transform: none; background: transparent; color: var(--accent-2); }
.lt-ui .btn:disabled, .lt-ui .btn.disabled { opacity: .55; cursor: not-allowed; }
.lt-ui .btn:disabled:hover, .lt-ui .btn.disabled:hover, .lt-ui .btn.disabled:active { transform: none; box-shadow: var(--hard-sm) !important; }
.lt-ui .btn-facebook, .lt-ui .btn-google, .lt-ui .btn-kakao, .lt-ui .btn-naver { border: 2px solid var(--rule); }

/* ============ 폼 ============ */
.lt-ui .form-label, .lt-ui label { font-weight: 600; color: var(--ink); font-size: 14px; }
.lt-ui .form-control, .lt-ui .form-select, .lt-ui .input-group-text, .lt-ui .tagsinput {
    background-color: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; box-shadow: none; font-size: 15px;
}
.lt-ui .form-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%236d6455' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>"); }
.lt-ui .input-group-text { background-color: var(--paper-2); color: var(--ink-2); }
.lt-ui .form-control::placeholder { color: var(--muted); opacity: .8; }
.lt-ui .form-control:focus, .lt-ui .form-select:focus, .lt-ui .tagsinput.focus {
    background-color: var(--card); color: var(--ink); border-color: var(--accent); box-shadow: var(--hard-sm); outline: 0;
}
.lt-ui .form-control:disabled, .lt-ui .form-control[readonly], .lt-ui .form-select:disabled { background-color: var(--paper-2); color: var(--muted); opacity: 1; }
.lt-ui .form-control.is-invalid, .lt-ui .form-select.is-invalid { border-color: var(--bad); background-image: none; }
.lt-ui .form-control.is-valid, .lt-ui .form-select.is-valid { border-color: var(--ok); background-image: none; }
.lt-ui .invalid-feedback { color: var(--bad); font-weight: 500; }
.lt-ui .form-text { color: var(--muted); }
.lt-ui .form-check-input { width: 1.15em; height: 1.15em; margin-top: .2em; background-color: var(--card); border: 2px solid var(--rule); border-radius: 3px; box-shadow: none; }
.lt-ui .form-check-input[type="radio"] { border-radius: 50%; }
.lt-ui .form-check-input:checked { background-color: var(--accent); border-color: var(--rule); }
.lt-ui .form-check-input:focus { border-color: var(--accent); box-shadow: var(--hard-sm); }
.lt-ui .form-switch .form-check-input { width: 2.4em; border-radius: 3px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='%236d6455'/></svg>"); }
.lt-ui .form-switch .form-check-input:checked { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='%23fbf8f0'/></svg>"); }
.lt-ui .input-button .form-control { border-radius: 4px !important; padding-right: 52px; }
.lt-ui .input-button button { background: transparent; color: var(--muted); border: 0; border-radius: 0 4px 4px 0; opacity: 1; }
.lt-ui .input-button button:hover { background: transparent; color: var(--ink); opacity: 1; }
.lt-ui .select2-container--default .select2-selection--single,
.lt-ui .select2-container--default .select2-selection--multiple { background: var(--card); border: 2px solid var(--rule); border-radius: 4px; min-height: 38px; }
.lt-ui .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 34px; }
.lt-ui .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
.lt-ui .select2-dropdown { background: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); }
.lt-ui .select2-container--default .select2-results__option--highlighted[aria-selected], .lt-ui .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--accent); color: var(--on-accent); }
.lt-ui .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--paper); color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; }
.lt-ui .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--mark); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 3px; }

/* ============ 카드 / 박스 ============ */
.lt-ui .card, .lt-ui .box, .lt-ui .custom-card, .lt-ui .box-custom, .lt-ui .upgrade-card, .lt-ui .list-group, .lt-ui .accordion {
    background: var(--card); color: var(--ink); border: 2px solid var(--rule) !important; border-radius: 6px; box-shadow: var(--hard); overflow: hidden;
}
.lt-ui .card:hover, .lt-ui .custom-card:hover { transform: none; box-shadow: var(--hard); }
.lt-ui .card .card, .lt-ui .box .box, .lt-ui .card .box, .lt-ui .box .card { box-shadow: none; }
.lt-ui .card-header, .lt-ui .card-header-custom, .lt-ui .card-header-gradient, .lt-ui .box-custom .box-header {
    background: var(--paper-2); color: var(--ink); border-bottom: 2px solid var(--rule); padding: 14px 22px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.lt-ui .card-footer { background: var(--paper-2); border-top: 2px solid var(--rule); }
.lt-ui .card-title, .lt-ui .card-title-text, .lt-ui .card-title-custom { color: var(--ink) !important; font-family: var(--serif); font-weight: 900; letter-spacing: -.03em; margin: 0; }
.lt-ui .card-body { color: var(--ink); }
.lt-ui .list-group { padding: 0; }
.lt-ui .list-group-item { background: transparent; color: var(--ink); border-color: var(--rule-soft); }
.lt-ui .accordion-item { background: transparent; border: 0; border-bottom: 2px solid var(--rule); }
.lt-ui .accordion-item:last-child { border-bottom: 0; }
.lt-ui .accordion-button { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: none; }
.lt-ui .accordion-button:not(.collapsed) { background: var(--paper-2); color: var(--ink); }
[data-theme="dark"] .lt-ui .accordion-button::after { filter: invert(1); }

/* ============ 표 ============ */
.lt-ui .table, .lt-ui .custom-table {
    --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--rule-soft);
    --bs-table-striped-bg: var(--paper-2); --bs-table-hover-bg: var(--paper-2); --bs-table-hover-color: var(--ink);
    color: var(--ink); margin-bottom: 0;
}
.lt-ui .table > :not(caption) > * > * { background-color: transparent; color: var(--ink); border-bottom-color: var(--rule-soft); box-shadow: none; }
.lt-ui .table thead th, .lt-ui .custom-table thead th {
    background: var(--paper-2); color: var(--ink-2); font: 600 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase;
    padding: 12px 18px; border-bottom: 2px solid var(--rule); white-space: nowrap;
}
.lt-ui .table tbody td, .lt-ui .table tbody th, .lt-ui .custom-table tbody td { padding: 14px 18px; vertical-align: middle; font-size: 14.5px; }
.lt-ui .table-hover > tbody > tr:hover > * { background-color: var(--paper-2) !important; }
.lt-ui .table-bordered, .lt-ui .table-bordered > :not(caption) > * > * { border-color: var(--rule-soft); }
.lt-ui .table-responsive { scrollbar-width: thin; }

/* ============ 배지 / 알림 ============ */
.lt-ui .badge { border: 1.5px solid var(--rule); border-radius: 3px; font: 600 11.5px/1.2 var(--mono); letter-spacing: .02em; padding: 4px 8px; }
.lt-ui .badge.bg-success, .lt-ui .badge.bg-danger, .lt-ui .badge.bg-warning, .lt-ui .badge.bg-info, .lt-ui .badge.bg-secondary, .lt-ui .badge.bg-primary, .lt-ui .badge.bg-dark { box-shadow: none; }
.lt-ui .badge.bg-warning, .lt-ui .badge.bg-info { color: #17130e !important; }
.lt-ui .alert { color: var(--ink); background: var(--card); border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); }
.lt-ui .alert-success { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.lt-ui .alert-danger { background: color-mix(in srgb, var(--bad) 13%, var(--card)); }
.lt-ui .alert-warning { background: color-mix(in srgb, #e7b343 22%, var(--card)); }
.lt-ui .alert-info, .lt-ui .alert-primary { background: var(--mark); }
.lt-ui .alert .alert-link, .lt-ui .alert a { color: var(--ink); text-decoration: underline; }
.lt-ui .progress { background: var(--paper-2); border: 2px solid var(--rule); border-radius: 4px; height: 12px; }
.lt-ui .progress-bar { background: var(--accent); }

/* ============ 드롭다운 / 모달 / 탭 / 페이지네이션 ============ */
.lt-ui .dropdown-menu, .lt-ui .drop-down .drop-down-menu {
    background: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.lt-ui .drop-down .drop-down-menu { top: calc(100% + 10px); padding: 10px; }
.lt-ui .dropdown-item, .lt-ui .drop-down .drop-down-menu .drop-down-item { color: var(--ink); border-radius: 3px; font-weight: 500; }
.lt-ui .dropdown-item:hover, .lt-ui .drop-down .drop-down-menu .drop-down-item:hover, .lt-ui .drop-down .drop-down-menu .drop-down-item.active { background: var(--mark); color: var(--ink) !important; }
.lt-ui .drop-down .drop-down-menu .drop-down-item.text-danger { color: var(--bad) !important; }
.lt-ui .dropdown-divider, .lt-ui .drop-down .drop-down-menu .drop-down-divider { border-color: var(--rule-soft); }
.lt-ui .modal-content { background: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard); }
.lt-ui .modal-header { border-bottom: 2px solid var(--rule); background: var(--paper-2); }
.lt-ui .modal-footer { border-top: 2px solid var(--rule-soft); }
.lt-ui .modal-title { font-family: var(--serif); font-weight: 900; letter-spacing: -.03em; }
.lt-ui .modal-backdrop { --bs-backdrop-bg: #17130e; --bs-backdrop-opacity: .6; }
[data-theme="dark"] .lt-ui .btn-close { filter: invert(1) grayscale(1); }
.lt-ui .nav-tabs { border-bottom: 2px solid var(--rule); }
.lt-ui .nav-tabs .nav-link { color: var(--muted); border: 2px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; font-weight: 600; margin-bottom: -2px; }
.lt-ui .nav-tabs .nav-link:hover { color: var(--ink); }
.lt-ui .nav-tabs .nav-link.active { background: var(--card); color: var(--ink); border-color: var(--rule); border-bottom: 2px solid var(--card); }
.lt-ui .nav-pills .nav-link { color: var(--ink); border-radius: 4px; font-weight: 600; }
.lt-ui .nav-pills .nav-link.active { background: var(--accent); color: var(--on-accent); }
.lt-ui .page-item .page-link { background: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; margin: 0 2px; font-weight: 600; box-shadow: none; }
.lt-ui .page-item .page-link:hover { background: var(--paper-2); color: var(--ink); }
.lt-ui .page-item.active .page-link { background: var(--accent); color: var(--on-accent); border-color: var(--rule); }
.lt-ui .page-item.disabled .page-link, .lt-ui .page-item[disabled] .page-link { opacity: .5; background: var(--paper-2); }
.lt-ui .tooltip { --bs-tooltip-bg: var(--ink); --bs-tooltip-color: var(--paper); font-family: var(--mono); }
.lt-ui .offcanvas { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.lt-ui .breadcrumb-item a { color: var(--accent); }
.lt-ui .breadcrumb-item.active { color: var(--muted); }

/* ============ 패널 뼈대 (사용자 + 관리자) ============ */
.lt-panel .dashboard { display: block; min-height: 100vh; overflow: visible; font-size: 14.5px; }
.lt-panel .dashboard-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: 264px; height: auto; margin: 0;
    display: flex; flex-direction: column; background: var(--paper-2); color: var(--ink);
    border: 0; border-right: 2px solid var(--rule); border-radius: 0; z-index: 1050; transition: left .25s ease; overflow: visible;
}
.lt-panel .dashboard-sidebar .dashboard-sidebar-header {
    position: static; flex: none; display: flex; align-items: center; width: auto; height: 68px; padding: 0 22px;
    background: transparent !important; border: 0 !important; border-bottom: 2px solid var(--rule) !important;
}
.lt-panel .dashboard-sidebar .logo img, .lt-panel .dashboard-sidebar-header img { height: 30px; max-height: 30px; width: auto; }
.lt-panel .dashboard-sidebar .dashboard-sidebar-inner {
    position: static; flex: 1; min-height: 0; width: auto; height: auto; background: transparent !important; border: 0 !important; display: flex; flex-direction: column;
}
.lt-panel .dashboard-sidebar .dashboard-sidebar-content { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; width: 100%; }
.lt-panel .dashboard-sidebar-body { flex: 1; display: block; overflow-y: auto; padding: 14px 0; border: 0; border-radius: 0; background: transparent !important; scrollbar-width: thin; }
.lt-panel .dashboard-sidebar-links { padding: 4px 14px !important; }
.lt-panel .dashboard-sidebar-links .dashboard-sidebar-links-title {
    padding: 6px 10px 4px !important; margin: 0 0 6px !important; font: 600 11px/1.4 var(--mono) !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--muted) !important;
}
.lt-panel .dashboard-sidebar-link { margin-bottom: 4px !important; }
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title {
    position: relative; display: flex !important; align-items: center; gap: 12px; padding: 9px 12px !important;
    border: 2px solid transparent; border-radius: 4px !important; color: var(--ink-2) !important; font-size: 14.5px !important; font-weight: 500 !important;
    text-transform: none; text-decoration: none !important; background: transparent !important; transition: background-color .15s, color .15s;
}
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title i { width: 18px !important; margin: 0 !important; color: var(--accent); text-align: center; font-size: 14px; }
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title span { margin: 0 !important; }
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title:hover { background: var(--card) !important; color: var(--ink) !important; border-color: var(--rule-soft); }
.lt-panel .dashboard-sidebar-link.current .dashboard-sidebar-link-title {
    background: var(--card) !important; color: var(--ink) !important; font-weight: 700 !important; border-color: var(--rule); box-shadow: var(--hard-sm);
}
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-menu { padding-left: 20px; }
.lt-panel .dashboard-sidebar-badge, .lt-panel .dashboard-badge { background: var(--accent); color: var(--on-accent); border-radius: 3px; font: 600 11px/1.2 var(--mono); padding: 3px 7px; }
.lt-panel .dashboard-sidebar-footer { flex: none; margin-top: auto; padding: 10px 0 14px !important; border-top: 2px solid var(--rule) !important; background: transparent !important; }
.lt-panel .dashboard-sidebar-card { background: var(--card); border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard-sm); }
.lt-panel .dashboard-sidebar .overlay { display: none; }

.lt-panel .dashboard-body { position: relative; display: flex; flex-direction: column; min-height: 100vh; width: auto; margin-left: 264px; padding: 0 !important; transition: margin-left .25s ease; }
.lt-panel .dashboard.toggle .dashboard-sidebar { left: -270px; }
.lt-panel .dashboard.toggle .dashboard-body { margin-left: 0; width: auto; }
.lt-panel .dashboard-nav {
    position: sticky !important; top: 0 !important; left: auto; z-index: 1040 !important; display: flex; align-items: center; gap: 10px;
    height: 68px; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 clamp(16px, 3vw, 40px);
    background: var(--paper) !important; background-image: var(--grain); backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border: 0 !important; border-bottom: 2px solid var(--rule) !important; border-radius: 0 !important; box-shadow: none !important;
}
.lt-panel .dashboard-nav-btn, .lt-panel .dashboard-nav .drop-down-btn, .lt-panel .dashboard-nav > a { color: var(--ink); }
.lt-panel .dashboard-toggle-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--rule); border-radius: 4px; background: var(--card); box-shadow: var(--hard-sm); cursor: pointer; }
.lt-panel .dashboard-toggle-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.lt-panel .dashboard-nav .nav-icon { color: var(--ink); font-size: 16px; }
.lt-panel .dashboard-nav .user-menu .user-img, .lt-panel .user-img { width: auto; height: 38px; max-width: 76px; border-radius: 4px; border: 2px solid var(--rule); object-fit: contain; background: var(--paper-2); }
.lt-panel .dashboard-welcome-message { margin: 0 0 0 10px; font: 900 20px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.lt-panel .badge-noti { background: var(--accent); color: var(--on-accent); border: 2px solid var(--rule); border-radius: 3px; font: 600 10px/1 var(--mono); }
.lt-panel .dashboard-nav .lt-theme-toggle { margin-right: 4px; }
.lt-panel .dashboard-container { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 24px; }
.lt-panel .dashboard-ad { max-width: 1400px; margin-inline: auto; text-align: center; }
.lt-panel .dashboard-footer { border-top: 2px solid var(--rule-soft) !important; font-family: var(--mono); color: var(--muted); }
.lt-panel .dashboard-footer a { color: var(--ink-2) !important; text-decoration: none; }
.lt-panel .dashboard-footer a:hover { color: var(--accent) !important; text-decoration: underline; }
.lt-panel .notifications-item { border-color: var(--rule-soft); }
.lt-panel .notifications-item.unread { background: var(--mark); }
.lt-panel .notifications-header, .lt-panel .notifications-footer { border-color: var(--rule-soft); }
.lt-panel .settings-link { color: var(--ink-2); border-radius: 4px; }
.lt-panel .settings-link:hover, .lt-panel .settings-link.active { background: var(--card); color: var(--ink); }

@media (max-width: 1199.98px) {
    .lt-panel .dashboard-sidebar { left: -290px; width: 280px; box-shadow: none; }
    .lt-panel .dashboard.toggle .dashboard-sidebar { left: 0; box-shadow: 6px 0 0 rgba(23, 19, 14, .25); }
    .lt-panel .dashboard-body, .lt-panel .dashboard.toggle .dashboard-body { margin-left: 0; }
}

/* ============ 로그인 / 가입 / 비밀번호: 왼쪽 브랜드 면 + 오른쪽 폼 ============ */
body.lt-sign { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.lt-sign-aside {
    --cream: #f1e9da;
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100vh; padding: clamp(32px, 5vw, 64px); overflow: hidden;
    background: #17130e; color: var(--cream);
    background-image: radial-gradient(120% 80% at 0% 0%, rgba(193, 154, 232, .22), transparent 55%), var(--grain);
}
[data-theme="dark"] .lt-sign-aside { background-color: #0e0b08; border-right: 2px solid rgba(241, 233, 218, .16); }
.lt-sign-brand img { height: 48px; width: auto; display: block; }
.lt-sign-copy { position: relative; z-index: 1; max-width: 30em; }
.lt-sign-kicker { margin: 0 0 22px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #c19ae8; }
.lt-sign-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.lt-sign-title { margin: 0 0 22px; font: 900 clamp(32px, 4.2vw, 56px)/1.18 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.lt-sign-text { margin: 0; max-width: 28em; font-size: 16px; line-height: 1.8; color: rgba(241, 233, 218, .72); }
.lt-sign-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font: 500 12.5px/1.4 var(--mono); letter-spacing: .06em; color: rgba(241, 233, 218, .55); }
.lt-sign-foot span + span::before { content: "/"; margin-right: 18px; color: rgba(241, 233, 218, .25); }
.lt-sign-glyph { position: absolute; right: -.08em; bottom: -.22em; font: 900 clamp(280px, 34vw, 520px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(193, 154, 232, .22); pointer-events: none; user-select: none; }

.lt-sign .sign-page { position: relative; display: grid; place-items: center; width: 100%; min-height: 100vh; padding: 56px clamp(20px, 5vw, 72px); background: transparent; }
.lt-sign .sign-page::before { display: none; }
.lt-sign .sign-box { width: 100%; max-width: 410px; margin: 0 auto; }
.lt-sign .sign-box .box { padding: 0; background: transparent; border: 0 !important; border-radius: 0; box-shadow: none; overflow: visible; }
.lt-sign .sign-box .box::before { display: none; }
.lt-sign .sign-box .box + .box, .lt-sign .sign-box .box.mb-3 { padding: 18px; border: 2px dashed var(--rule-soft) !important; border-radius: 4px; }
.lt-sign .sign-box .logo { display: none; }
.lt-sign .sign-box h3 { margin: 0 0 8px; font: 900 34px/1.2 var(--serif); letter-spacing: -.045em; }
.lt-sign .sign-box h3 + p, .lt-sign .sign-box .mb-4 > p { margin: 0; color: var(--muted); font-size: 15.5px; }
.lt-sign .sign-box .mb-4 { margin-bottom: 30px !important; }
.lt-sign .sign-box .form-control { height: 50px; padding: 0 16px; background: var(--card); font-size: 16px; }
.lt-sign .sign-box .input-group .form-control { height: 50px; }
.lt-sign .sign-box .input-button .form-control { padding-right: 52px; }
.lt-sign .sign-box .input-button button { width: 52px; }
.lt-sign .sign-box .form-label { margin-bottom: 8px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lt-sign .sign-box .btn { height: 52px; font-size: 16px; }
.lt-sign .sign-box .btn.w-100 { display: inline-flex; align-items: center; justify-content: center; }
/* 글자 뒤를 배경색으로 덮지 않고(질감과 어긋남), 양쪽에 선을 따로 그린다 */
.lt-sign .sign-with .sign-with-divider { display: flex; align-items: center; gap: 14px; text-align: center; }
.lt-sign .sign-with .sign-with-divider::before, .lt-sign .sign-with .sign-with-divider::after { content: ""; position: static; flex: 1; width: auto; height: 1px; transform: none; background: var(--rule-soft); }
.lt-sign .sign-with .sign-with-divider span { padding: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.lt-sign .lt-sign-theme { position: fixed; top: 18px; right: 18px; z-index: 20; }
@media (max-width: 991.98px) {
    body.lt-sign { display: block; }
    .lt-sign-aside { display: none; }
    .lt-sign .sign-box .logo { display: inline-block; margin-bottom: 22px !important; }
    .lt-sign .sign-page { padding-top: 76px; }
}

/* ============ 일반 페이지(블로그, 문의, 정적 페이지) ============ */
.lt-ui .lt-sheet { position: relative; }
.lt-ui .lt-sheet .lt-prose, .lt-ui .lt-prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }

.lt-pagehead { padding: 56px 0 30px; border-bottom: 2px solid var(--rule); background: var(--paper-2); background-image: var(--grain); }
.lt-pagehead .lt-kicker { margin-bottom: 12px; }
.lt-pagehead-title { margin: 0; max-width: 22ch; font: 900 clamp(30px, 5vw, 52px)/1.15 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.lt-ui .section { padding: 44px 0 72px; }
.lt-ui .section .section-inner { position: relative; }
.lt-ui .link, .lt-ui .link.link-primary { color: inherit; text-decoration: none; }
.lt-ui .link:hover { color: var(--accent); }
.lt-ui .lt-prose { max-width: 74ch; }
.lt-ui .lt-prose h1, .lt-ui .lt-prose h2, .lt-ui .lt-prose h3 { margin: 1.6em 0 .6em; font-family: var(--serif); }
.lt-ui .lt-prose h4, .lt-ui .lt-prose h5 { margin: 1.4em 0 .5em; }
.lt-ui .lt-prose img { max-width: 100%; height: auto; border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); }
.lt-ui .lt-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lt-ui .lt-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--ink); font-family: var(--serif); }
.lt-ui .lt-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.lt-ui .lt-prose th, .lt-ui .lt-prose td { border: 1px solid var(--rule-soft); padding: 10px 12px; }
.lt-ui .lt-prose ul, .lt-ui .lt-prose ol { padding-left: 1.3em; }

/* 블로그 */
.lt-ui a.card { display: block; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.lt-ui a.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
[data-theme="dark"] .lt-ui a.card:hover { box-shadow: 6px 6px 0 var(--accent); }
.lt-ui .card > img, .lt-ui .card.card-blog img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 480px; object-fit: cover; border-bottom: 2px solid var(--rule); }
.lt-ui .card .card-body { padding: 24px 28px; }
.lt-ui .card .card-title { font-size: 21px; line-height: 1.35; }
.lt-ui .card .lead, .lt-ui .card-text.lead { font-size: 15.5px; font-weight: 400; color: var(--ink-2); }
.lt-ui .post-meta .post-meta-item, .lt-ui .post-meta .meta-item, .lt-ui .meta-item { color: var(--muted); font: 500 13px/1.5 var(--mono); }
.lt-ui .post-meta .post-meta-item:not(:last-child)::after { background-color: var(--rule-soft); }
.lt-ui .post-meta .meta-item { margin-right: 18px; }
.lt-ui .posts .post .post-img { border: 2px solid var(--rule); border-radius: 4px; }
.lt-ui .posts .post .post-title { font-size: 15px; }
.lt-ui .tag-cloud a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 12px; border: 2px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
[data-theme="dark"] .lt-ui .tag-cloud a { box-shadow: 2px 2px 0 var(--accent); }
.lt-ui .tag-cloud a:hover { background: var(--mark); color: var(--ink); }
.lt-ui .post-meta { margin-bottom: 18px; }

/* 문의 / 일반 박스 */
.lt-ui .viewbox { border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard); background: var(--card); }
.lt-ui .viewbox .viewbox-header { background: var(--paper-2); color: var(--ink); border-bottom: 2px solid var(--rule); }
.lt-ui .viewbox .viewbox-header h5 { font-family: var(--serif); font-weight: 900; letter-spacing: -.03em; }
.lt-ui .viewbox .viewbox-body { background: var(--card); min-height: 0; }
.lt-ui .viewbox-container .box-content { max-width: 880px; }

/* ============ 사용자 패널 페이지별 보정: 각 페이지 인라인 스타일의 보라 그라데이션/둥근 모서리를 공방 말투로 ============ */
.lt-panel .stat-card { border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard); background: var(--card); }
.lt-panel .stat-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--rule); }
[data-theme="dark"] .lt-panel .stat-card:hover { box-shadow: 6px 6px 0 var(--accent); }
.lt-panel .stat-icon { border: 2px solid var(--rule); border-radius: 4px; background: var(--paper-2) !important; box-shadow: none !important; color: var(--ink); }
.lt-panel .stat-emails .stat-icon { background: var(--accent) !important; color: var(--on-accent); }
.lt-panel .stat-history .stat-icon { background: var(--ok) !important; color: #fff; }
.lt-panel .stat-favorites .stat-icon { background: var(--bad) !important; color: #fff; }
.lt-panel .stat-domains .stat-icon { background: #e7b343 !important; color: #17130e; }
.lt-panel .stat-info .count { font-family: var(--serif); font-weight: 900; }
.lt-panel .stat-info .label { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.lt-panel .discount-banner-card, .lt-panel .status-widget, .lt-panel .plan-card.recommended .plan-card-header {
    background: var(--accent) !important; color: var(--on-accent); border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard);
}
.lt-panel .status-widget::before { display: none; }
.lt-panel .plan-card.recommended .plan-card-header { box-shadow: none; border: 0; border-radius: 0; border-bottom: 2px solid var(--rule); }
.lt-panel .discount-banner-card h1, .lt-panel .discount-banner-card h2, .lt-panel .discount-banner-card h3, .lt-panel .discount-banner-card h4, .lt-panel .discount-banner-card h5, .lt-panel .discount-banner-card h6,
.lt-panel .status-widget h1, .lt-panel .status-widget h2, .lt-panel .status-widget h3, .lt-panel .status-widget h4, .lt-panel .status-widget h5, .lt-panel .status-widget h6 { color: var(--on-accent) !important; }
.lt-panel .glass-effect, .lt-panel .status-badge { background: rgba(255, 255, 255, .16); border: 2px solid var(--on-accent); border-radius: 4px; backdrop-filter: none; color: var(--on-accent); }
.lt-panel .btn-glow, .lt-panel .action-btn:hover { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--hard-sm); border: 2px solid var(--rule); }
.lt-panel .action-btn { border: 2px solid var(--on-accent); border-radius: 4px; background: transparent; color: var(--on-accent); }
.lt-panel .btn-glow:hover:not(:disabled):not(.disabled) { color: var(--ink); transform: translate(-1px, -1px); }
.lt-panel .sub-status-card { border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard-sm); color: var(--ink); }
body.lt-panel .sub-status-card.warning { background: color-mix(in srgb, #e7b343 22%, var(--card)); border-color: var(--rule); color: var(--ink); }
body.lt-panel .sub-status-card.success { background: color-mix(in srgb, var(--ok) 14%, var(--card)); border-color: var(--rule); color: var(--ink); }
body.lt-panel .sub-status-card.info { background: var(--mark); border-color: var(--rule); color: var(--ink); }
.lt-panel .btn-gradient, .lt-panel .btn-plan-primary { background: var(--accent) !important; color: var(--on-accent); border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); }
.lt-panel .btn-gradient:hover:not(:disabled):not(.disabled), .lt-panel .btn-plan-primary:hover:not(:disabled):not(.disabled) { background: var(--accent-2) !important; color: var(--on-accent); opacity: 1; transform: translate(-1px, -1px); box-shadow: var(--hard-hover); }
.lt-panel .btn-plan, .lt-panel .btn-pay, .lt-panel .contact-submit-btn { border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); }
.lt-panel .btn-plan-outline { background: var(--card); border: 2px solid var(--rule); color: var(--ink); }
.lt-panel .btn-plan-outline:hover:not(:disabled):not(.disabled) { background: var(--ink); color: var(--paper); border-color: var(--rule); }
.lt-panel .btn-pay, .lt-panel .contact-submit-btn { background: var(--accent); color: var(--on-accent); }
.lt-panel .btn-pay:hover:not(:disabled):not(.disabled), .lt-panel .contact-submit-btn:hover { background: var(--accent-2); color: var(--on-accent); opacity: 1; transform: translate(-1px, -1px); box-shadow: var(--hard-hover); }
.lt-panel .btn-pay:active, .lt-panel .contact-submit-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.lt-panel .custom-input { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); }
.lt-panel .custom-input:focus { border-color: var(--accent); box-shadow: var(--hard-sm); }
.lt-panel .plan-card, .lt-panel .comparison-card, .lt-panel .contact-hero, .lt-panel .support-policy, .lt-panel .faq-item, .lt-panel .contact-empty, .lt-panel .pm-btn, .lt-panel .coupon-row, .lt-panel .email-input-row {
    border: 2px solid var(--rule); border-radius: 6px;
}
.lt-panel .plan-card, .lt-panel .comparison-card, .lt-panel .contact-hero { background: var(--card); box-shadow: var(--hard); }
.lt-panel .plan-card.recommended { border-color: var(--rule); box-shadow: 6px 6px 0 var(--accent); }
.lt-panel .plan-card-header { border-bottom: 2px solid var(--rule); }
.lt-panel .plan-price { font-family: var(--serif); font-weight: 900; }
.lt-panel .plan-features li i.fa-check, .lt-panel .plan-savings { color: var(--ok); }
.lt-panel .plan-badge { border: 1.5px solid var(--rule); border-radius: 3px; font-family: var(--mono); }
.lt-panel .billing-toggle { border: 2px solid var(--rule); border-radius: 4px; background: var(--paper-2); }
.lt-panel .billing-toggle .toggle-btn { border-radius: 2px; }
.lt-panel .billing-toggle .toggle-btn.active { background: var(--ink); color: var(--paper); box-shadow: none; }
.lt-panel .coupon-row, .lt-panel .email-input-row { background: var(--card); }
.lt-panel .pm-btn { background: var(--card); box-shadow: var(--hard-sm); }
.lt-panel .pm-btn:hover { border-color: var(--rule); background: var(--paper-2); }
.lt-panel .pm-btn.selected { border-color: var(--rule); background: var(--mark); }
.lt-panel .pm-btn.selected .pm-check { border-color: var(--rule); background: var(--accent); color: var(--on-accent); }
.lt-panel .pm-btn .pm-check { border-color: var(--rule); }
.lt-panel .order-total { border-top: 2px solid var(--rule); }
.lt-panel .email-input-row .btn-check-avail { background: var(--accent); color: var(--on-accent); border-left: 2px solid var(--rule) !important; }
.lt-panel .step-num { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); font-family: var(--mono); }
.lt-panel .step.active .step-num { background: var(--accent); color: var(--on-accent); }
.lt-panel .step-divider { height: 2px; background: var(--rule-soft); }
.lt-panel .feature-icon, .lt-panel .support-icon { border: 2px solid var(--rule); border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.lt-panel .support-kicker { border-radius: 3px; border: 1.5px solid var(--rule); font-family: var(--mono); background: var(--card); }
.lt-panel .support-policy.is-free { background: color-mix(in srgb, #e7b343 22%, var(--card)); border-color: var(--rule); }
.lt-panel .support-policy.is-paid { background: color-mix(in srgb, var(--ok) 14%, var(--card)); border-color: var(--rule); }
.lt-panel .support-policy.is-closed { background: color-mix(in srgb, var(--bad) 13%, var(--card)); border-color: var(--rule); }
.lt-panel .support-list i { color: var(--accent); }
.lt-panel .faq-item { background: var(--card); }
.lt-panel .support-guide-modal .modal-content { border: 2px solid var(--rule); border-radius: 6px; }
.lt-panel .upgrade-card { border: 2px solid var(--rule); border-radius: 6px; }
.lt-panel .upgrade-card:hover:not(.disabled) { border-color: var(--rule); box-shadow: 6px 6px 0 var(--accent); transform: translate(-2px, -2px); }
.lt-panel .status-dot { border: 2px solid var(--rule); box-shadow: none !important; }
.lt-panel .status-dot.success { background: var(--ok); }
.lt-panel .status-dot.warning { background: #e7b343; }
.lt-panel .status-dot.danger { background: var(--bad); }
.lt-panel .email-actions .btn-action { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); font-weight: 600; }
.lt-panel .email-actions .btn-action:hover:not(:disabled):not(.disabled) { background: var(--paper-2); color: var(--ink); border-color: var(--rule); }
.lt-panel .email-actions .btn-action.danger { color: var(--bad); }
.lt-panel .email-actions .btn-action.danger:hover { background: var(--bad); color: #fff; border-color: var(--rule); }
.lt-panel .email-address-text { font-family: var(--mono); font-size: 1.2rem; }
.lt-panel .is_seen_message { background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--rule); border-radius: 3px; font-family: var(--mono); }
.lt-panel .avatar-circle { border-radius: 4px; border: 2px solid var(--rule); }
.lt-panel .badge-soft-primary, .lt-panel .bg-danger-subtle, .lt-panel .badge-soft-danger { border: 1.5px solid var(--rule); border-radius: 3px; color: var(--ink); }
.lt-panel .badge-soft-primary { background: var(--mark); }
.lt-panel .badge-soft-danger, .lt-panel .bg-danger-subtle { background: color-mix(in srgb, var(--bad) 16%, var(--card)); }
.lt-panel .btn-action-delete:hover:not(:disabled):not(.disabled) { background: var(--bad) !important; color: #fff !important; box-shadow: var(--hard-sm); }
.lt-panel .email-list-item:hover { background: var(--paper-2); }
.lt-panel .upgrade-later-btn { background: var(--card); border: 2px solid var(--rule); color: var(--ink); }
.lt-panel .mail-history::-webkit-scrollbar-thumb { background: var(--rule-soft); }
.lt-panel [style*="linear-gradient"] { background: var(--accent) !important; color: var(--on-accent); }
.lt-panel [style*="radial-gradient"] { display: none; }

/* ============ 관리자 / 공용 부품 ============ */
.lt-panel .counter .counter-icon { width: 56px; height: 56px; border: 2px solid var(--rule); border-radius: 4px; background: var(--mark); color: var(--ink); font-size: 20px; }
.lt-panel .counter .counter-amount { font: 900 30px/1.1 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.lt-panel .counter .counter-title { font: 600 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); }
.lt-panel .settings-side { border: 2px solid var(--rule); border-radius: 6px; background: var(--card); box-shadow: var(--hard); overflow: hidden; align-self: flex-start; }
.lt-panel .settings-link { border-color: transparent; border-bottom: 1px solid var(--rule-soft); color: var(--ink); }
.lt-panel .settings-link:last-child { border-bottom: 0; }
.lt-panel .settings-link .settings-link-icon { border: 2px solid var(--rule); border-radius: 4px; background: var(--mark); color: var(--ink); }
.lt-panel .settings-link .settings-link-title { color: var(--ink); font-weight: 600; }
.lt-panel .settings-link:hover, .lt-panel .settings-link.current { background: var(--accent); border-color: transparent; }
.lt-panel .settings-link:hover .settings-link-title, .lt-panel .settings-link.current .settings-link-title { color: var(--on-accent); }
.lt-panel .settings-link:hover .settings-link-icon, .lt-panel .settings-link.current .settings-link-icon { background: var(--card); color: var(--ink); }
.lt-panel .quick-access-item { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); box-shadow: var(--hard-sm); }
.lt-panel .quick-access-item:hover { background: var(--mark); color: var(--ink); }
.lt-panel .upload-image { border: 2px dashed var(--rule); border-radius: 6px; background-image: none; background-color: var(--paper-2); }
.lt-panel .upload-image label { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); font-weight: 600; }
.lt-panel .upload-image img { border-radius: 4px; }
.lt-panel .addons { background: var(--card); }
.lt-panel .addons-image img { border: 2px solid var(--rule); border-radius: 4px; }
.lt-panel .filters-box-items, .lt-panel .shortcodes { border-color: var(--rule-soft); }
.lt-panel .steps-sidebar { background: var(--card); border-color: var(--rule); }
.lt-panel .dd-handle, .lt-panel .dd3-content { background: var(--card); color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; }
.lt-panel .whats-new, .lt-panel .offcanvas-header { border-color: var(--rule-soft); }
.lt-panel .ribbon { background: var(--accent); color: var(--on-accent); }
.lt-panel .toggle-title { color: var(--ink); }
.lt-panel .log { border-color: var(--rule-soft); }
.lt-panel .cursor-pointer { cursor: pointer; }

/* 라이트/다크 로고 교체 (사이드바, 로그인) */
.lt-ui .lt-logo-dark { display: none; }
[data-theme="dark"] .lt-ui .lt-logo-light { display: none; }
[data-theme="dark"] .lt-ui .lt-logo-dark { display: inline-block; }

/* ============ 토스트 (PHPFlasher): 오른쪽 아래, 공방 말투, 종 아이콘 ============ */
body .fl-main-container[data-position] { top: auto; bottom: 18px; right: 18px; left: auto; width: 23.5em; max-width: calc(100vw - 24px); transform: none; }
@media (max-width: 480px) { body .fl-main-container[data-position] { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; } }
body .fl-main-container .fl-container.fl-flasher {
    --t: var(--accent, #6a2c91);
    position: absolute; right: 0; bottom: 0; width: 100%; margin: 0; overflow: hidden; padding: 0;
    background: var(--card, #fbf8f0); color: var(--ink, #17130e);
    border: 2px solid var(--rule, #17130e) !important; border-radius: 4px;
    box-shadow: var(--hard, 4px 4px 0 #17130e); font-family: var(--sans, inherit);
}
body .fl-main-container .fl-container.fl-flasher.fl-success { --t: var(--ok, #1d7a4d); }
body .fl-main-container .fl-container.fl-flasher.fl-info { --t: var(--accent, #6a2c91); }
body .fl-main-container .fl-container.fl-flasher.fl-warning { --t: #d99a14; }
body .fl-main-container .fl-container.fl-flasher.fl-error { --t: var(--bad, #b3261e); }
body .fl-main-container .fl-container.fl-flasher .fl-content { align-items: center; gap: 14px; padding: 14px 16px; }
body .fl-main-container .fl-container.fl-flasher .fl-title {
    margin: 0; color: var(--t); font: 600 12px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase;
}
body .fl-main-container .fl-container.fl-flasher .fl-message { margin: 3px 0 0; color: var(--ink, #17130e); font-size: 14.5px; line-height: 1.5; word-break: keep-all; }
body .fl-main-container .fl-container.fl-flasher .fl-message:first-letter, body .fl-main-container .fl-container.fl-flasher .fl-title:first-letter { text-transform: none; }
body .fl-main-container .fl-container.fl-flasher .fl-progress-bar { display: none; }

/* 종 아이콘: 나타날 때 흔들리고, 오른쪽 위 점이 종류(성공/안내/경고/오류)를 알려준다 */
body .fl-main-container .fl-container.fl-flasher .fl-icon {
    position: relative; flex: none; width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin: 0; font-size: 16px;
    border: 2px solid var(--rule, #17130e); border-radius: 4px; background: var(--paper-2, #e9e2d0); color: var(--ink, #17130e); transition: none;
}
body .fl-main-container .fl-container.fl-flasher .fl-icon::before {
    content: ""; position: absolute; inset: 7px; width: auto; height: auto; left: 7px; top: 7px; border: 0; border-radius: 0; box-shadow: none;
    background: currentColor; transform: none; transform-origin: 50% 8%;
    -webkit-mask: var(--bell) center / contain no-repeat; mask: var(--bell) center / contain no-repeat;
    --bell: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a1.5 1.5 0 0 1 1.5 1.5v.6a6.5 6.5 0 0 1 5 6.4v3.2l1.8 2.6a1 1 0 0 1-.8 1.6H4.5a1 1 0 0 1-.8-1.6l1.8-2.6v-3.2a6.5 6.5 0 0 1 5-6.4v-.6A1.5 1.5 0 0 1 12 2zM9.5 19h5a2.5 2.5 0 0 1-5 0z'/></svg>");
}
body .fl-main-container .fl-container.fl-flasher .fl-icon::after {
    content: ""; position: absolute; left: auto; right: -7px; top: -7px; width: 12px; height: 12px; border: 2px solid var(--rule, #17130e); border-radius: 50%;
    background: var(--t); box-shadow: none; transform: none;
}
body .fl-main-container .fl-container.fl-flasher .fl-icon { background-color: var(--paper-2, #e9e2d0); }
body .fl-main-container .fl-container.fl-flasher.fl-show .fl-icon::before { animation: lt-bell 1.1s .25s ease-in-out 1 both; }
body .fl-main-container .fl-container.fl-flasher.fl-show .fl-icon::after { animation: lt-bell-dot .5s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes lt-bell {
    0% { transform: rotate(0); } 12% { transform: rotate(18deg); } 28% { transform: rotate(-16deg); } 44% { transform: rotate(11deg); }
    60% { transform: rotate(-7deg); } 76% { transform: rotate(3deg); } 100% { transform: rotate(0); }
}
@keyframes lt-bell-dot { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { body .fl-main-container .fl-container.fl-flasher.fl-show .fl-icon::before, body .fl-main-container .fl-container.fl-flasher.fl-show .fl-icon::after { animation: none; } }

/* 겹쳐 쌓기(최대 3장) + 페이드와 함께 오른쪽 아래에서 나타나는 등장 / 오른쪽 아래로 사라지는 퇴장. 맨 앞(첫 번째 자식)이 가장 새 알림이다 */
body .fl-main-container[data-position] { height: 0; }
body .fl-main-container[data-position] .fl-container.fl-flasher {
    transform-origin: 50% 100%; opacity: 0; pointer-events: none; z-index: 1;
    transform: translate(36px, 22px) scale(.94);
    transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.3, 1.25, .5, 1), box-shadow .6s;
}
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show { pointer-events: auto; opacity: 1; }
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show:nth-child(1) { z-index: 3; transform: translateY(0) scale(1); }
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show:nth-child(2) { z-index: 2; transform: translateY(-13px) scale(.95); }
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show:nth-child(3) { z-index: 1; transform: translateY(-26px) scale(.9); }
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show:nth-child(2) { opacity: .92; }
body .fl-main-container[data-position] .fl-container.fl-flasher.fl-show:nth-child(3) { opacity: .8; }
body .fl-main-container[data-position] .fl-container.fl-flasher:nth-child(n+2) { box-shadow: 3px 3px 0 var(--rule-soft, rgba(23, 19, 14, .16)); }
body .fl-main-container[data-position] .fl-container.fl-flasher:nth-child(n+4), body .fl-main-container[data-position] .fl-container.fl-flasher.fl-drop { opacity: 0 !important; pointer-events: none; z-index: 0; transform: translateY(-38px) scale(.86); }
/* 뒤로 밀린 카드는 내용이 앞 카드 위로 비치지 않게 살짝 흐리게 */
body .fl-main-container[data-position] .fl-container.fl-flasher:nth-child(n+2) .fl-content { filter: saturate(.8); }
@media (prefers-reduced-motion: reduce) { body .fl-main-container[data-position] .fl-container.fl-flasher { transition: opacity .2s; } }

/* 개발 서버 전용 데모 로그인 */
.lt-dev-login { margin-top: 26px; padding: 16px; border: 2px dashed var(--rule); border-radius: 4px; }
.lt-dev-login-label { margin: 0 0 12px; font: 600 11.5px/1.3 var(--mono); letter-spacing: .14em; color: var(--accent); }
.lt-dev-login-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-dev-login-row .btn { height: 44px; padding-inline: 10px; font-size: 14px; }
@media (max-width: 420px) { .lt-dev-login-row { grid-template-columns: 1fr; } }

/* 이메일 인증 안내 */
.lt-verify-icon { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 26px; border: 2px solid var(--rule); border-radius: 4px; background: var(--paper-2); color: var(--ink); box-shadow: var(--hard-sm); }
.lt-verify-icon > svg { width: 44px; height: 44px; }
.lt-verify-badge { position: absolute; right: -12px; bottom: -12px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--rule); border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.lt-verify-badge svg { width: 16px; height: 16px; }
.lt-verify-resend { padding-top: 24px; border-top: 1px dashed var(--rule-soft); }
.lt-verify-resend p { color: var(--ink-2); }
@media (max-width: 991.98px) { .lt-sign .lt-verify-icon { margin-top: 4px; } }

/* 프로필 사진: 원형으로 깎거나 가운데만 잘라내지 않고 원본 비율 그대로 보여준다 */
.lt-panel .settings-user-img, .lt-panel .item-img img { width: auto; height: 50px; max-width: 100px; border-radius: 4px; object-fit: contain; }
.lt-panel .item-img.item-img-sm img { height: 40px; max-width: 80px; }
.lt-panel .upload-image.circle { width: auto; min-height: 150px; border-radius: 6px; }
.lt-panel .upload-image.circle img { width: auto !important; height: auto !important; max-width: 150px; max-height: 150px; border-radius: 4px !important; object-fit: contain; }

/* 사이드바 로고: 크기와 위치 (왼쪽 여백은 메뉴 글자 시작선에 맞춘다) */
.lt-panel .dashboard-sidebar .dashboard-sidebar-header { padding: 0 26px; }
.lt-panel .dashboard-sidebar-header .logo { display: inline-flex; align-items: center; height: 100%; margin: 0 !important; line-height: 0; }
.lt-panel .dashboard-sidebar .logo img, .lt-panel .dashboard-sidebar-header img { height: 36px; max-height: 36px; width: auto; max-width: 100%; }

/* 프로필 사진 선택 (설정 화면): 원본 비율 유지, 호버하면 카메라 표시 */
.lt-avatar-pick { position: relative; width: 150px; height: 150px; overflow: hidden; border: 2px solid var(--rule); border-radius: 6px; background: var(--paper-2); box-shadow: var(--hard-sm); cursor: pointer; }
.lt-avatar-pick img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lt-avatar-pick .avatar-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23, 19, 14, .55); color: #fff; font-size: 26px; opacity: 0; transition: opacity .2s; }
.lt-avatar-pick:hover .avatar-overlay, .lt-avatar-pick:focus-within .avatar-overlay { opacity: 1; }

/* 카드 안 아코디언(FAQ 등): 상자 안에 상자를 만들지 않고 구분선만 */
.lt-ui .card > .accordion.accordion-flush { border: 0 !important; border-radius: 0; box-shadow: none; background: transparent; }
.lt-ui .accordion-flush > .accordion-item { border: 0; border-bottom: 1px solid var(--rule-soft); background: transparent; }
.lt-ui .accordion-flush > .accordion-item:last-child { border-bottom: 0; }
.lt-ui .accordion-flush .accordion-button { padding: 16px 22px; background: transparent; font-weight: 600; font-size: 15px; line-height: 1.45; }
.lt-ui .accordion-flush .accordion-button:not(.collapsed) { background: var(--paper-2); }
.lt-ui .accordion-flush .accordion-body { padding: 4px 22px 18px; font-size: 14.5px; line-height: 1.75; background: var(--paper-2); }
.lt-ui .alert h6 { font-weight: 700; }
.lt-ui .alert h6:empty { display: none; }

/* 고객지원 FAQ: 질문 하나하나가 상자. (이전 디자인 그대로, 바깥 카드만 없앰) */
.lt-panel .faq-list { display: grid; gap: .75rem; border: 0 !important; box-shadow: none; background: transparent; overflow: visible; }
.lt-panel .faq-item { overflow: hidden; }
.lt-panel .faq-button { width: 100%; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; text-align: left; font-weight: 800; font-size: .95rem; line-height: 1.35; }
.lt-panel .faq-button span { font-size: inherit; line-height: inherit; }
.lt-panel .faq-button i { color: var(--muted); transition: transform .2s ease; }
.lt-panel .faq-button:not(.collapsed) i { transform: rotate(180deg); }
.lt-panel .faq-body { color: var(--muted); padding: 0 1.1rem 1rem; line-height: 1.65; font-size: .92rem; }

/* 카드 안의 목록/안내 영역은 상자를 한 겹 더 만들지 않는다 */
.lt-ui .card .list-group { border: 0 !important; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.lt-ui .list-group-flush > .list-group-item { border-width: 0 0 1px; border-style: dashed; border-color: var(--rule-soft); }
.lt-ui .list-group-flush > .list-group-item:last-child { border-bottom: 0; }
.lt-ui .lt-well { padding: 20px; border-radius: 4px; background: var(--paper-2); }
.lt-ui .min-w-0 { min-width: 0; }
.lt-ui .card.bg-primary .btn-light, .lt-ui .card.bg-success .btn-light { background: var(--card); color: var(--ink); }
.lt-ui .bg-light.text-dark { background: var(--paper-2) !important; color: var(--ink) !important; }

/* ============ 페이지마다 따로 박혀 있던 모양을 한 기준으로 ============ */
/* 페이지 전용 래퍼가 글꼴을 다시 지정해(Pretendard 는 로드되지 않아 시스템 글꼴로 떨어짐) 페이지마다 글꼴이 달랐다 */
.lt-panel .dashboard-wrapper, .lt-panel .manage-page-wrapper, .lt-panel .contact-dashboard { font-family: var(--sans) !important; color: var(--ink); max-width: none; margin: 0; }
/* 알약/원/큰 둥근 모서리, 부드러운 그림자 유틸리티는 공방 말투(4px, 하드 그림자)로 */
.lt-panel .rounded-pill, .lt-panel .rounded-3, .lt-panel .rounded-4, .lt-panel .rounded-5, .lt-panel .rounded-circle,
.lt-panel .btn.rounded-pill, .lt-panel .badge.rounded-pill { border-radius: 4px !important; }
.lt-panel .rounded-start-3 { border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important; }
.lt-panel .rounded-end-3 { border-top-right-radius: 4px !important; border-bottom-right-radius: 4px !important; }
.lt-panel .shadow-sm, .lt-panel .shadow { box-shadow: none !important; }
.lt-panel .btn.shadow-sm, .lt-panel .btn.shadow { box-shadow: var(--hard-sm) !important; }
.lt-panel .shadow-lg { box-shadow: var(--hard) !important; }
.lt-panel [style*="border-radius"]:not(.spinner-border):not(.status-dot):not(.form-check-input):not(.progress-bar) { border-radius: 4px !important; }
.lt-panel .modal-content.border-0 { border: 2px solid var(--rule) !important; }
.lt-panel .modal-header.border-bottom-0 { border-bottom: 2px solid var(--rule) !important; }
.lt-panel .modal-content .form-control.rounded-3, .lt-panel .modal-content .form-control.p-3 { padding: .55rem .9rem !important; }
.lt-panel .badge[class*="bg-success-lt"], .lt-panel .badge.bg-success-lt { background: color-mix(in srgb, var(--ok) 16%, var(--card)) !important; color: var(--ink) !important; }

/* ============ 사용자 대시보드 ============ */
.lt-panel .lt-dash-head h2 { font-family: var(--serif); font-weight: 900; letter-spacing: -.04em; font-size: clamp(28px, 4vw, 40px); }
.lt-ui .lt-ic { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border: 2px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink) !important; }
.lt-panel .sub-status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; }
.lt-panel .list-item-custom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 2px dashed var(--rule-soft); }
.lt-panel .list-item-custom:last-child { border-bottom: 0; }
.lt-panel .list-item-title { font: 600 14px/1.3 var(--mono); color: var(--ink); word-break: break-all; }
.lt-panel .list-item-meta { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.lt-panel .btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; background: var(--card); color: var(--ink); }
.lt-panel .dashboard-wrapper .card-body-custom { padding: 20px 24px; }
.lt-panel .dashboard-wrapper { max-width: 1400px; margin: 0 auto; }
.lt-panel .stat-card { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: transform .15s, box-shadow .15s; }
.lt-panel .stat-icon { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lt-panel .stat-info .count { font-size: 32px; line-height: 1.15; letter-spacing: -.04em; color: var(--ink); }
.lt-panel .discount-banner-card { position: relative; overflow: hidden; }
.lt-panel .glass-effect { border-radius: 4px; }
.lt-panel .btn-glow { transition: transform .15s, box-shadow .15s; }

/* 수신 메시지 목록: 표 대신 행 목록 */
.lt-panel .card-body-custom.lt-flush { padding: 0; }
.lt-panel .lt-msg { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto; align-items: center; gap: 20px; padding: 16px 24px; color: var(--ink); text-decoration: none; border-bottom: 2px dashed var(--rule-soft); transition: background-color .15s; }
.lt-panel .lt-msg:last-child { border-bottom: 0; }
.lt-panel .lt-msg:hover { background: var(--paper-2); color: var(--ink); }
.lt-panel .lt-msg-from { display: grid; min-width: 0; }
.lt-panel .lt-msg-from b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-panel .lt-msg-from small, .lt-panel .lt-msg-time { font: 500 12px/1.4 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-panel .lt-msg-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lt-panel .is_seen_message { background: var(--accent); color: var(--on-accent); border-radius: 3px; font: 600 10px/1 var(--mono); padding: 3px 6px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 767.98px) { .lt-panel .lt-msg { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 18px; } .lt-panel .lt-msg-subject { grid-column: 1 / -1; grid-row: 2; } }
.lt-panel .lt-msg-act { position: relative; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto auto; }
.lt-panel .lt-msg-act:hover { background: var(--paper-2); }
.lt-panel .lt-msg-link { color: var(--ink); text-decoration: none; min-width: 0; }
.lt-panel .lt-msg-link::after { content: ""; position: absolute; inset: 0; }
.lt-panel .lt-msg-del { position: relative; z-index: 1; color: var(--bad); }
.lt-panel .lt-msg-two { display: grid; white-space: normal; }
.lt-panel .lt-msg-two > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-panel .lt-msg-two small { font: 500 12px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) { .lt-panel .lt-msg-act { grid-template-columns: minmax(0, 1fr) auto auto; } .lt-panel .lt-msg-act .lt-msg-subject { grid-column: 1 / -1; } .lt-panel .lt-msg-act .lt-msg-del { grid-row: 1; grid-column: 3; } }

/* 대시보드 상단바: 떠 있는 둥근 바, 데스크톱에서는 햄버거 숨김 */
.lt-panel .dashboard-nav {
    top: 12px !important; height: 60px; margin: 12px clamp(16px, 3vw, 40px) 0 !important; padding: 0 14px 0 18px;
    background: var(--card) !important; background-image: none !important;
    border: 2px solid var(--rule) !important; border-radius: 6px !important;
    box-shadow: var(--hard) !important;
}
.lt-panel .dashboard-toggle-btn { width: 38px; height: 38px; border: 0; border-radius: 4px; box-shadow: none; background: var(--paper-2); }
.lt-panel .dashboard-toggle-btn:active { transform: scale(.94); }
.lt-panel .dashboard-nav .user-menu .user-img, .lt-panel .user-img { height: 36px; border-radius: 4px; border-width: 2px; border-color: var(--rule); }
.lt-panel .dashboard-welcome-message { margin-left: 4px; font-size: 18px; }
@media (min-width: 1200px) { .lt-panel .dashboard-nav .dashboard-toggle-btn { display: none; } }
@media (max-width: 575.98px) { .lt-panel .dashboard-nav { margin-inline: 12px !important; } }

/* 사이드바: 떠 있는 둥근 패널 */
.lt-panel .dashboard-sidebar {
    top: 12px; bottom: 12px; left: 12px; width: 252px; border: 2px solid var(--rule); border-radius: 6px;
    background: var(--card); overflow: hidden; box-shadow: var(--hard);
}
.lt-panel .dashboard-sidebar .dashboard-sidebar-header { border-bottom: 0 !important; }
.lt-panel .dashboard-body { margin-left: 276px; }
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title { border-radius: 4px !important; border-width: 0; }
.lt-panel .dashboard-sidebar-link .dashboard-sidebar-link-title:hover { background: var(--paper-2) !important; }
.lt-panel .dashboard-sidebar-link.current .dashboard-sidebar-link-title { background: var(--mark) !important; box-shadow: none; }
.lt-panel .dashboard-sidebar-footer { border-top: 0 !important; }
.lt-panel .dashboard-sidebar-card { border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard-sm); }
.lt-panel .dashboard.toggle .dashboard-sidebar { left: -290px; }
.lt-panel .dashboard.toggle .dashboard-body { margin-left: 0; }
@media (max-width: 1199.98px) {
    .lt-panel .dashboard-sidebar { left: -300px; width: 268px; }
    .lt-panel .dashboard.toggle .dashboard-sidebar { left: 12px; }
    .lt-panel .dashboard-body, .lt-panel .dashboard.toggle .dashboard-body { margin-left: 0; }
}

/* 상단바 제거: 사용자 정보와 테마 전환은 사이드바 하단, 좁은 화면에서는 떠 있는 메뉴 버튼 */
.lt-panel .dashboard-container { padding-top: 28px; }
.lt-panel .lt-side-user { display: flex; align-items: center; gap: 8px; margin: 6px 14px 14px; padding-top: 12px; }
.lt-panel .lt-side-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.lt-panel .lt-side-who .user-img { height: 36px; max-width: 54px; flex: none; }
.lt-panel .lt-side-who span { display: grid; min-width: 0; }
.lt-panel .lt-side-who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-panel .lt-side-who small { font: 500 11.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-panel .lt-fab { display: none; position: fixed; top: 14px; left: 14px; z-index: 1040; width: 42px; height: 42px; border: 2px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: var(--hard-sm); }
@media (max-width: 1199.98px) { .lt-panel .lt-fab { display: inline-grid; } .lt-panel .dashboard-container { padding-top: 72px; } }

/* 사용자 받은편지함: 홈페이지 라벨 + 우편함 재사용 */
.lt-panel .lt-app-dash { margin-top: 8px; }
.lt-panel .lt-app-dash .lt-addr { top: 24px; }
.lt-panel .lt-app-dash .lt-inbox { min-height: 480px; }
@media (max-width: 1199.98px) { .lt-panel .lt-app-dash { grid-template-columns: 1fr; } .lt-panel .lt-app-dash .lt-addr { position: static; } }


/* 대시보드 공통 페이지 제목 (x-dash-head) 와 폭/여백: 모든 페이지가 같은 뼈대를 쓴다 */
.lt-panel .dashboard-wrapper { width: 100%; max-width: none; margin: 0; padding: 0; }
.lt-panel .lt-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 28px !important; padding: 0 0 22px; border-bottom: 2px dashed var(--rule-soft); }
.lt-panel .lt-dash-head-text { min-width: 0; }
.lt-panel .lt-dash-head h1, .lt-panel .lt-dash-head h2 { margin: 0 0 6px; font: 900 clamp(26px, 3.4vw, 36px)/1.25 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.lt-panel .lt-dash-head p { margin: 0; color: var(--muted); font-size: 15px; }
.lt-panel .lt-dash-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--muted); font: 500 13px/1 var(--mono); text-decoration: none; }
.lt-panel .lt-dash-back:hover { color: var(--accent); }
.lt-panel .lt-dash-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-panel .dashboard-container { padding-top: 40px; }
@media (max-width: 1199.98px) { .lt-panel .dashboard-container { padding-top: 76px; } }

/* 사이드바 로고는 메뉴 알약 왼쪽 끝과 같은 선에 둔다 */
.lt-panel .dashboard-sidebar .dashboard-sidebar-header { padding: 0 14px; }

/* ============ 사용자 사이드바 개편: 그룹 제목 · 아이콘 칸 · 반전 활성 · 접기 · 플랜 알림 ============ */
.lt-panel .lt-side2 { transition: left .25s ease, width .25s ease; }
.lt-panel .lt-side2 .dashboard-sidebar-header { justify-content: space-between; gap: 8px; }
.lt-panel .lt-rail-btn { flex: none; display: none; width: 30px; height: 30px; place-items: center; border: 2px solid var(--rule-soft); border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; transition: background-color .15s, color .15s, transform .25s; }
.lt-panel .lt-rail-btn:hover { background: var(--paper-2); color: var(--ink); border-color: var(--rule); }
@media (min-width: 1200px) { .lt-panel .lt-rail-btn { display: inline-grid; } }

.lt-panel .lt-plan-pill { display: flex; align-items: center; gap: 10px; margin: 0 14px 6px; padding: 10px 12px; border: 2px dashed var(--rule); border-radius: 4px; color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s; }
.lt-panel .lt-plan-pill:hover { background: var(--paper-2); border-style: solid; color: var(--ink); }
.lt-panel .lt-plan-pill i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: var(--paper-2); color: var(--accent); font-size: 14px; }
.lt-panel .lt-plan-pill.is-paid { border-style: solid; background: var(--mark); }
.lt-panel .lt-plan-pill.is-paid i { background: var(--ink); color: var(--paper); }
.lt-panel .lt-plan-pill span { display: grid; min-width: 0; }
.lt-panel .lt-plan-pill b { font-size: 13.5px; line-height: 1.3; }
.lt-panel .lt-plan-pill small { font: 500 11px/1.4 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lt-panel .lt-side2 .dashboard-sidebar-links { padding: 6px 14px !important; }
.lt-panel .lt-side2 .dashboard-sidebar-links .dashboard-sidebar-links-title { display: flex; align-items: center; gap: 10px; padding: 6px 4px 4px !important; margin: 0 0 6px !important; }
.lt-panel .lt-side2 .dashboard-sidebar-links .dashboard-sidebar-links-title::after { content: ""; flex: 1; height: 0; border-top: 2px dashed var(--rule-soft); }
.lt-panel .lt-side2 .dashboard-sidebar-link { margin-bottom: 2px !important; }
.lt-panel .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title { gap: 12px; padding: 6px 8px !important; border-radius: 5px !important; }
.lt-panel .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title i { flex: none; width: 30px !important; height: 30px; display: grid; place-items: center; border: 2px solid var(--rule-soft); border-radius: 4px; background: var(--card); font-size: 13px; transition: background-color .15s, border-color .15s, color .15s; }
.lt-panel .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title:hover i { border-color: var(--rule); }
.lt-panel .lt-side2 .dashboard-sidebar-link.current .dashboard-sidebar-link-title { background: var(--ink) !important; color: var(--paper) !important; font-weight: 600 !important; box-shadow: none; }
.lt-panel .lt-side2 .dashboard-sidebar-link.current .dashboard-sidebar-link-title i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (min-width: 1200px) {
    .lt-panel .dashboard.is-rail .lt-side2 { width: 76px; }
    .lt-panel .dashboard.is-rail .dashboard-body { margin-left: 100px; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-header { flex-direction: column; justify-content: center; height: auto; padding: 14px 0 8px; gap: 10px; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-header .logo { display: none; }
    .lt-panel .dashboard.is-rail .lt-rail-btn i { transform: rotate(180deg); }
    .lt-panel .dashboard.is-rail .lt-plan-pill { margin: 0 14px 6px; padding: 8px 0; justify-content: center; border-style: solid; }
    .lt-panel .dashboard.is-rail .lt-plan-pill span,
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-link-title span,
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-who span { display: none; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-links { padding: 6px 0 !important; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-links .dashboard-sidebar-links-title { font-size: 0 !important; padding: 0 !important; margin: 4px 14px 8px !important; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-links .dashboard-sidebar-links-title::after { display: block; }
    .lt-panel .dashboard.is-rail .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title { justify-content: center; padding: 5px 0 !important; margin: 0 14px; }
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-user { flex-direction: column; margin: 6px 0 14px; }
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-who { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .lt-panel .lt-side2, .lt-panel .dashboard-body { transition: none; } }

/* ============ 대시보드 받은편지함: 주소 줄 + 전체 폭 우편함 (홈페이지의 라벨/우표 장식은 뺀다) ============ */
.lt-panel .lt-app-dash { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; }
.lt-panel .lt-app-dash .lt-addr { position: static; display: block; }
.lt-panel .lt-app-dash .lt-stamp, .lt-panel .lt-app-dash .lt-label-head, .lt-panel .lt-app-dash .lt-tally, .lt-panel .lt-app-dash .lt-eyebrow { display: none; }
.lt-panel .lt-app-dash .lt-label { padding: 18px 20px; box-shadow: none; }
.lt-panel .lt-app-dash .lt-address { padding: 0; display: grid; grid-template-columns: minmax(280px, 1fr) auto; grid-template-areas: "box actions"; gap: 12px 24px; align-items: center; }
.lt-panel .lt-app-dash .lt-address-box { grid-area: box; background: var(--paper-2); }
.lt-panel .lt-app-dash .lt-address-box input#mainEmail { font-size: 19px; }
.lt-panel .lt-app-dash .lt-actions { grid-area: actions; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.lt-panel .lt-app-dash .lt-actions > *:last-child { grid-column: auto; }
.lt-panel .lt-app-dash .lt-action { width: auto; padding: 9px 14px; box-shadow: none; font-size: 13.5px; }
.lt-panel .lt-app-dash .lt-action:active:not(:disabled) { transform: translate(1px, 1px); }
.lt-panel .lt-app-dash .lt-inbox { box-shadow: none; min-height: 360px; }
.lt-panel .lt-app-dash .lt-inbox-head { padding: 12px 20px; }
.lt-panel .lt-app-dash .lt-inbox-head { display: none; }
/* 페이지 제목이 이미 '받은편지함'이라 카드 제목은 화면에서만 숨긴다 */
.lt-panel .lt-app-dash .lt-inbox-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 991.98px) {
    .lt-panel .lt-app-dash .lt-addr { display: block; }
    .lt-panel .lt-app-dash .lt-address { grid-template-columns: minmax(0, 1fr); grid-template-areas: "box" "actions"; }
    .lt-panel .lt-app-dash .lt-actions { justify-content: flex-start; }
}

/* 대시보드 우편함 한 단계 더: 메일 줄을 촘촘한 목록으로(보낸 사람 | 제목+미리보기 | 시간), 안 읽은 메일은 왼쪽 막대, 하단 만료 줄 정리 */
.lt-panel .lt-app-dash .lt-inbox { border-radius: 6px; }
.lt-panel .lt-app-dash .lt-label { border-radius: 6px; }
.lt-panel .lt-app-dash .lt-mail { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px 14px 20px; border-bottom: 1px solid var(--rule-soft); }
.lt-panel .lt-app-dash .lt-mail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; transition: background-color .15s; }
.lt-panel .lt-app-dash .lt-mail.is-unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lt-panel .lt-app-dash .lt-mail.is-unread::before { background: var(--accent); }
.lt-panel .lt-app-dash .lt-mail:hover::before { background: var(--ink); }
.lt-panel .lt-app-dash .lt-avatar { width: 40px; height: 40px; font-size: 17px; }
.lt-panel .lt-app-dash .lt-time { padding-top: 0; align-self: center; }
@media (min-width: 992px) {
    .lt-panel .lt-app-dash .lt-mail-main { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); grid-template-areas: "from subject" "from snippet"; column-gap: 24px; row-gap: 2px; align-items: center; }
    .lt-panel .lt-app-dash .lt-from { grid-area: from; }
    .lt-panel .lt-app-dash .lt-subject { grid-area: subject; margin: 0; font-size: 15.5px; }
    .lt-panel .lt-app-dash .lt-snippet { grid-area: snippet; margin: 0; font-size: 13.5px; }
}
.lt-panel .lt-app-dash .lt-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--rule-soft); background: var(--paper-2); }
@media (max-width: 575.98px) { .lt-panel .lt-app-dash .lt-mail { grid-template-columns: 38px minmax(0, 1fr); } .lt-panel .lt-app-dash .lt-time { grid-column: 2; } }

@media (max-width: 575.98px) {
    .lt-panel .lt-app-dash .lt-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .lt-panel .lt-app-dash .lt-actions > * { width: 100%; }
    .lt-panel .lt-app-dash .lt-actions > *:last-child { grid-column: 1 / -1; }
}
/* 푸터 좌우 여백을 본문과 같은 선에 맞춘다 */
.lt-panel .dashboard-footer .container-fluid { max-width: none !important; padding-inline: 20px !important; }
.lt-panel .lt-app-dash .lt-actions { align-self: start; margin-top: 11px; }

/* 사이드바 언어 선택: 현재 언어 버튼을 누르면 위로 목록이 펼쳐지는 드롭다운. 언어가 늘어나도 목록이 스크롤된다 */
.lt-panel .lt-side-lang { position: relative; margin: 6px 14px 0; }
.lt-panel .lt-side-lang summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--rule-soft); border-radius: 5px; background: var(--paper-2); color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s; }
.lt-panel .lt-side-lang summary::-webkit-details-marker { display: none; }
.lt-panel .lt-side-lang summary:hover, .lt-panel .lt-side-lang[open] summary { border-color: var(--rule); background: var(--card); }
.lt-panel .lt-side-lang summary > i:first-child { color: var(--accent); width: 16px; text-align: center; }
.lt-panel .lt-side-lang summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-panel .lt-lang-caret { font-size: 10px; color: var(--muted); transition: transform .2s; }
.lt-panel .lt-side-lang[open] .lt-lang-caret { transform: rotate(180deg); }
.lt-panel .lt-side-lang ul { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none; max-height: 240px; overflow-y: auto; background: var(--card); border: 2px solid var(--rule); border-radius: 6px; box-shadow: var(--hard-sm); animation: lt-lang-in .15s ease both; }
.lt-panel .lt-side-lang a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.lt-panel .lt-side-lang a img { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--rule-soft); }
.lt-panel .lt-side-lang a:hover { background: var(--paper-2); color: var(--ink); }
.lt-panel .lt-side-lang a.is-on { background: var(--ink); color: var(--paper); font-weight: 700; }
@keyframes lt-lang-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) {
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-lang { margin: 6px 14px 0; }
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-lang summary { justify-content: center; padding: 8px 0; }
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-lang summary span, .lt-panel .dashboard.is-rail .lt-side2 .lt-lang-caret { display: none; }
    .lt-panel .dashboard.is-rail .lt-side2 .lt-side-lang ul { left: 0; right: auto; width: 200px; }
}

/* 코드 편집기(CodeMirror): 어두운 dracula 테마 대신 공방 팔레트에 맞춘 밝은 편집기 */
.lt-panel .CodeMirror, .lt-panel .cm-s-dracula.CodeMirror { height: auto; min-height: 300px; background-color: var(--card) !important; color: var(--ink) !important; border: 2px solid var(--rule); border-radius: 4px; font: 500 13.5px/1.75 var(--mono); }
.lt-panel .CodeMirror-scroll { min-height: 296px; }
.lt-panel .cm-s-dracula .CodeMirror-gutters { background-color: var(--paper-2) !important; color: var(--muted) !important; border: 0; border-right: 2px solid var(--rule-soft); }
.lt-panel .cm-s-dracula .CodeMirror-linenumber { color: var(--muted); }
.lt-panel .cm-s-dracula .CodeMirror-cursor { border-left: 2px solid var(--ink); }
.lt-panel .cm-s-dracula .CodeMirror-selected, .lt-panel .cm-s-dracula.CodeMirror-focused .CodeMirror-selected { background: var(--mark); }
.lt-panel .cm-s-dracula .CodeMirror-activeline-background { background: transparent; }
.lt-panel .CodeMirror-focused { outline: 3px solid var(--accent); outline-offset: 2px; }
.lt-panel .CodeMirror pre, .lt-panel .CodeMirror pre.CodeMirror-line { background: transparent; border: 0; border-radius: 0; padding: 0 6px; font-family: inherit; color: inherit; }
/* 보이지 않는 입력용 textarea 가 폼 스킨(베이지 칸)을 입고 첫 줄을 덮던 문제 */
.lt-panel .CodeMirror textarea { background: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 0; padding: 0 !important; }
.lt-panel .cm-s-dracula span.cm-comment { color: var(--muted); font-style: italic; }
.lt-panel .cm-s-dracula span.cm-string, .lt-panel .cm-s-dracula span.cm-string-2 { color: var(--ok); }
.lt-panel .cm-s-dracula span.cm-number, .lt-panel .cm-s-dracula span.cm-atom { color: #b4570a; }
.lt-panel .cm-s-dracula span.cm-keyword, .lt-panel .cm-s-dracula span.cm-tag, .lt-panel .cm-s-dracula span.cm-def { color: var(--accent); font-weight: 600; }
.lt-panel .cm-s-dracula span.cm-variable, .lt-panel .cm-s-dracula span.cm-variable-2, .lt-panel .cm-s-dracula span.cm-property, .lt-panel .cm-s-dracula span.cm-operator { color: var(--ink); }
.lt-panel .cm-s-dracula span.cm-attribute { color: #1b6aa6; }

/* 화면 높이가 낮으면 메뉴 간격을 줄여서 모든 메뉴가 스크롤 없이 보이게 한다 */
@media (min-width: 1200px) and (max-height: 960px) {
    .lt-panel .lt-side2 .dashboard-sidebar-links { padding: 2px 14px !important; }
    .lt-panel .lt-side2 .dashboard-sidebar-links .dashboard-sidebar-links-title { padding: 4px 4px 2px !important; margin-bottom: 4px !important; }
    .lt-panel .lt-side2 .dashboard-sidebar-link { margin-bottom: 0 !important; }
    .lt-panel .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title { padding: 3px 8px !important; }
    .lt-panel .lt-side2 .dashboard-sidebar-link .dashboard-sidebar-link-title i { width: 28px !important; height: 28px; }
    .lt-panel .lt-side2 .dashboard-sidebar-body { padding: 8px 0 4px; }
    .lt-panel .lt-side2 .lt-plan-pill { padding: 7px 12px; }
}

/* 로그인/가입/비밀번호 화면의 폼 위 로고 (왼쪽 브랜드 면이 숨겨지는 모바일에서는 이 로고만 보인다) */
.lt-ui .box .logo.logo-sm img { height: 46px; width: auto; }
@media (max-width: 575.98px) { .lt-ui .box .logo.logo-sm img { height: 40px; } }

/* 사이드바 하단: 설정은 아이콘 버튼으로(라이트/다크 전환은 푸터 오른쪽으로 옮겼다) */
.lt-panel .lt-side-gear { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--hard-sm); transition: transform .12s, box-shadow .12s, background-color .15s; }
.lt-panel .lt-side-gear:hover { transform: translate(-1px, -1px); background: var(--paper-2); color: var(--ink); }
.lt-panel .lt-side-gear:hover i { transform: rotate(60deg); }
.lt-panel .lt-side-gear i { transition: transform .3s; color: var(--accent); }
.lt-panel .lt-side-gear.is-on { background: var(--ink); color: var(--paper); }
.lt-panel .lt-side-gear.is-on i { color: var(--paper); }
.lt-panel .dashboard-footer .lt-theme-toggle { margin-left: 6px; }

/* 블로그 글 편집기 (BlockNote) */
.lt-bn{border:1px solid var(--bs-border-color,#e3e3ea);border-radius:12px;overflow:hidden;background:var(--bs-body-bg,#fff)}
.lt-bn .bn-container{--bn-colors-editor-background:transparent}
.lt-bn .bn-editor{min-height:520px;padding:20px 8px}
.lt-bn .bn-editor [data-content-type="heading"]{margin-top:.6em}
.lt-bn .bn-editor img{border-radius:8px;max-width:100%}
.lt-bn:focus-within{border-color:var(--bs-primary,#7c3aed);box-shadow:0 0 0 3px rgba(124,58,237,.12)}
@media(min-width:992px){.lt-bn+textarea+.mb-3{margin-bottom:0}}

/* 태그 입력: 바깥 상자 테두리가 안쪽 상자와 겹쳐 이중 테두리가 되던 것을 정리 */
.lt-ui .tagsinput { border: 0; background: none; box-shadow: none; padding: 0; }
.lt-ui .tagsinput .bootstrap-tagsinput { background: var(--card); border: 2px solid var(--rule); border-radius: 4px; box-shadow: none; padding: 6px 8px; gap: 6px; min-height: 46px; cursor: text; }
.lt-ui .tagsinput .bootstrap-tagsinput:has(input:focus) { border-color: var(--accent); box-shadow: var(--hard-sm); }
.lt-ui .tagsinput .bootstrap-tagsinput input { flex: 1; min-width: 120px; padding: 4px 4px; color: var(--ink); font-size: 15px; }
.lt-ui .tagsinput .bootstrap-tagsinput .tag { align-items: center; gap: 6px; padding: 3px 6px 3px 10px; border: 2px solid var(--rule); border-radius: 4px; background: var(--mark); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 20px; }
.lt-ui .tagsinput .bootstrap-tagsinput .tag [data-role="remove"] { margin: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: var(--ink); font-size: 14px; line-height: 1; opacity: .6; }
.lt-ui .tagsinput .bootstrap-tagsinput .tag [data-role="remove"]:after { content: "×"; padding: 0; }
.lt-ui .tagsinput .bootstrap-tagsinput .tag [data-role="remove"]:hover { opacity: 1; background: var(--rule); color: var(--card); box-shadow: none; }

/* ============ 관리자 전반 다듬기 ============ */
/* 푸터: 흰 띠 대신 배경에 녹아들게 */
.lt-panel .dashboard-footer { background: transparent !important; box-shadow: none !important; padding: 18px 20px; }

/* 설정 본문이 표 때문에 화면 밖으로 밀려나지 않게 */
.lt-panel .settings-content { min-width: 0; }
.lt-panel .settings-content .box { overflow-x: auto; }
.lt-panel .settings-content .table td { white-space: normal; }

/* td 에 d-flex 가 붙은 작업 칸이 표 칸 구실을 못 해 줄이 끊기던 문제 */
.lt-panel td.d-flex { display: table-cell !important; text-align: center; }
.lt-panel td.d-flex > .d-flex { display: inline-flex !important; justify-content: center; }

/* 표 작업 버튼: 아이콘만 있는 버튼은 흰 바탕 + 색 아이콘, 올리면 채워짐 */
.lt-panel :is(td, .handle) .btn:has(> i:only-child) { width: 34px; height: 34px; padding: 0 !important; display: inline-grid; place-items: center; background: var(--card); border: 2px solid var(--rule); border-radius: 4px; box-shadow: none; transition: transform .12s, background-color .15s, color .15s; }
.lt-panel :is(td, .handle) .btn-primary:has(> i:only-child) { color: var(--accent); }
.lt-panel :is(td, .handle) .btn-success:has(> i:only-child) { color: var(--ok); }
.lt-panel :is(td, .handle) .btn-danger:has(> i:only-child) { color: var(--bad); }
.lt-panel :is(td, .handle) .btn-secondary:has(> i:only-child), .lt-panel td .btn-dark:has(> i:only-child) { color: var(--ink); }
.lt-panel :is(td, .handle) .btn:has(> i:only-child):hover:not(:disabled):not(.disabled) { transform: translateY(-1px); color: #fff; filter: none; }
.lt-panel :is(td, .handle) .btn-primary:has(> i:only-child):hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.lt-panel :is(td, .handle) .btn-success:has(> i:only-child):hover:not(:disabled) { background: var(--ok); }
.lt-panel :is(td, .handle) .btn-danger:has(> i:only-child):hover:not(:disabled) { background: var(--bad); }
.lt-panel :is(td, .handle) .btn-secondary:has(> i:only-child):hover:not(:disabled), .lt-panel td .btn-dark:has(> i:only-child):hover:not(:disabled) { background: var(--ink); color: var(--paper); }

/* 표 안 링크: 밑줄 대신 평소엔 잉크색, 올리면 강조색 */
.lt-panel .table td > a:not(.btn) { color: var(--ink); text-decoration: none !important; font-weight: 600; border-bottom: 1px solid var(--rule-soft); }
.lt-panel .table td > a:not(.btn):hover { color: var(--accent); border-bottom-color: var(--accent); }

/* 입력 + 선택 묶음(이메일 유지 시간 등) */
.lt-panel .input-group { border: 0; background: none; box-shadow: none; flex-wrap: nowrap; }
.lt-panel .input-group > .form-control, .lt-panel .input-group > .form-select { border-radius: 0; padding-inline: 14px; }
.lt-panel .input-group > .form-control:first-child { border-radius: 4px 0 0 4px; }
.lt-panel .input-group > .form-control:last-child, .lt-panel .input-group > .form-select:last-child { border-radius: 0 4px 4px 0; }
.lt-panel .input-group > .form-control + .form-control, .lt-panel .input-group > .form-control + .form-select { margin-left: -2px; }
.lt-panel .input-group > .form-select { flex: 0 0 38%; }

/* 체크박스 */
.lt-panel input[type="checkbox"]:not(.form-check-input) { accent-color: var(--accent); width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.lt-panel .form-check-input { border: 2px solid var(--rule); border-radius: 3px; }
.lt-panel .form-check-input:checked { background-color: var(--accent); border-color: var(--rule); }

/* BlockNote 편집기: 사이트 입력란과 같은 두꺼운 테두리 */
.lt-bn { border: 2px solid var(--rule); border-radius: 4px; background: var(--card); }
.lt-bn .bn-container[data-color-scheme] { --bn-colors-editor-background: var(--card); --bn-colors-editor-text: var(--ink); --bn-font-family: inherit; --bn-border-radius: 4px; --bn-colors-side-menu: var(--muted); }
.lt-bn .bn-editor { padding: 18px 8px; font-size: 16px; line-height: 1.75; }
.lt-bn:focus-within { border-color: var(--accent); box-shadow: var(--hard-sm); }

/* 관리자 사이드바: 메뉴가 많아 잘리던 것을 줄이고 하단 링크는 2열로 */
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-link { margin-bottom: 1px !important; }
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-link .dashboard-sidebar-link-title { padding: 7px 10px !important; font-size: 14px !important; gap: 10px; }
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-links .dashboard-sidebar-links-title { padding: 8px 6px 2px !important; margin: 0 !important; }
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-body { padding: 8px 0; }
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-footer .dashboard-sidebar-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; padding: 0 10px !important; }
.lt-panel .dashboard-sidebar:not(.lt-side2) .dashboard-sidebar-footer .dashboard-sidebar-link-title { padding: 6px 8px !important; font-size: 13.5px !important; }

/* 알림 목록: 사이트 카드 스타일 */
.lt-panel .notifications-all .notifications-item { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 12px 16px; background: var(--card); border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.lt-panel .notifications-all .notifications-item:hover { transform: translate(-1px, -1px); }
.lt-panel .notifications-all .notifications-item.unread { background: var(--mark); }
.lt-panel .notifications-all .notifications-item-img img { width: 38px; height: 38px; border-radius: 4px; border: 2px solid var(--rule); background: var(--card); padding: 3px; object-fit: contain; }
.lt-panel .notifications-all .notifications-item-title { margin: 0; font-size: 15px; font-weight: 700; }
.lt-panel .notifications-all .notifications-item-text { font: 500 12px/1.4 var(--mono); color: var(--muted); }

/* 쪽 번호 링크 밑줄 제거 */
.lt-ui .pagination a, .lt-ui .page-link { text-decoration: none !important; }

/* 입력+선택 묶음 바깥의 이중 테두리 */
.lt-panel .form-group:has(> .input-group) { border: 0; background: none; box-shadow: none; padding: 0; }

/* 끌어서 순서 바꾸는 목록(자주 묻는 질문·메뉴·기능 등) */
.lt-panel .dd-item > .handle { margin: 8px 0; padding: 10px 12px 10px 66px; background: var(--card); border: 2px solid var(--rule); border-radius: 4px; box-shadow: var(--hard-sm); color: var(--ink); font-weight: 600; transition: background-color .15s; }
.lt-panel .dd-item > .handle:hover { background: var(--paper-2); color: var(--ink); }
.lt-panel .dd-item > .dd3-handle { top: 8px; bottom: 8px; height: auto; width: 50px; z-index: 1; border: 0; border-right: 2px solid var(--rule); border-radius: 4px 0 0 4px; background: var(--paper-2); box-shadow: none; }
.lt-panel .dd-item > .dd3-handle:hover { background: var(--mark); }
.lt-panel .dd-item > .handle a.text-reset { text-decoration: none !important; }
.lt-panel .dd-list .dd-list { padding-left: 50px; }
.lt-panel .dd-placeholder { border: 2px dashed var(--accent); border-radius: 4px; background: transparent; margin: 8px 0; }

/* 표/목록의 프로필 사진: 너비가 제각각이던 것을 정사각형 + 잘라 채우기로 */
.lt-panel .user .user-img { flex: none; display: block; width: 38px; height: 38px; max-width: none; overflow: hidden; background: var(--paper-2); }
.lt-panel .user .user-img img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; display: block; }

/* ============ 표 상자: 표가 상자 테두리에 딱 붙게, 위쪽 도구 줄은 한 줄 띠로 ============ */
.lt-panel .box:has(.table-inner), .lt-panel .box:has(> .table-responsive) { padding: 0 !important; }
.lt-panel .box:has(.table-inner) > h5, .lt-panel .box:has(.table-inner) > .mb-4:has(> h5) { margin: 0 !important; padding: 18px 20px 14px; }
.lt-panel .box > .table-header { margin: 0 !important; padding: 10px 14px; background: var(--card); border-bottom: 2px solid var(--rule); }
.lt-panel .box > .table-header:not(:has(*)) { display: none; }
.lt-panel .box > .table-header .drop-down-btn.btn { height: 34px; width: 38px; padding: 0 !important; display: inline-grid; place-items: center; }
.lt-panel .box > .text-muted.small { margin: 0 !important; padding: 12px 18px; border-bottom: 2px solid var(--rule-soft); }
.lt-panel .table-inner > :not(.table-responsive) { padding-inline: 18px; }
.lt-panel .table-inner > .table-responsive + * { padding-top: 14px; padding-bottom: 14px; }
.lt-panel .table-inner .table thead th:first-child, .lt-panel .table-responsive .table thead th:first-child { padding-left: 18px; }
.lt-panel .table-inner .table tbody tr:last-child > * { border-bottom: 0; }
.lt-panel .box > .table-footer { margin: 0 !important; padding: 14px 18px; border-top: 2px solid var(--rule-soft); }
.lt-panel .box > .table-footer > .row { margin: 0; --bs-gutter-x: 0; }
.lt-panel .box:has(.table-inner) > .row { margin: 0 !important; padding: 18px 20px 14px; --bs-gutter-x: 0; }
.lt-panel .box:has(.table-inner) > .row h5 { margin: 0 !important; }
.lt-panel .box > .table-header { padding: 8px 12px; }
.lt-panel .box > .table-header { border-bottom: 0; }

/* 정사각 아이콘 버튼: 기본 테마의 아이콘 왼쪽 여백(10px)과 호버 이동 때문에 화살표가 오른쪽으로 쏠리던 것 */
.lt-panel .btn.btn-icon i { margin: 0; }
.lt-panel .btn.btn-icon:hover i { transform: translateX(2px); }
.lt-panel .badge.bg-primary-lt { background: var(--mark) !important; color: var(--ink) !important; font-weight: 600; }

/* ============ 고객지원 티켓 ============ */
.lt-panel .lt-tk-list { display: flex; flex-direction: column; }
.lt-panel .lt-tk-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.lt-panel .lt-tk-row:first-child { border-top: 0; }
.lt-panel .lt-tk-row:hover { background: var(--paper-2); }
.lt-panel .lt-tk-main { min-width: 0; display: flex; flex-direction: column; }
.lt-panel .lt-tk-main b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-panel .lt-tk-main small { color: var(--muted); font: 500 12.5px var(--mono); }
.lt-panel .lt-tk-st { flex: none; display: inline-block; padding: 3px 9px; border: 1.5px solid var(--rule); border-radius: 3px; font: 600 11.5px/1.4 var(--mono); background: var(--card); white-space: nowrap; }
.lt-panel .lt-tk-st.is-open { background: var(--mark); }
.lt-panel .lt-tk-st.is-answered { background: color-mix(in srgb, var(--ok) 20%, var(--card)); }
.lt-panel .lt-tk-st.is-closed { color: var(--muted); border-color: var(--rule-soft); }
.lt-panel .lt-tk-wrap { max-width: 820px; }
.lt-panel .lt-tk-meta { margin: 0 0 18px; color: var(--muted); font: 500 13px var(--mono); }
.lt-panel .lt-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.lt-panel .lt-msgb { max-width: 86%; }
.lt-panel .lt-msgb.is-me { align-self: flex-end; }
.lt-panel .lt-msgb-who { margin: 0 4px 4px; font: 700 12.5px var(--sans); color: var(--ink-2); }
.lt-panel .lt-msgb.is-me .lt-msgb-who { text-align: right; }
.lt-panel .lt-msgb-who time { margin-left: 8px; color: var(--muted); font: 500 11.5px var(--mono); }
.lt-panel .lt-msgb-body { padding: 12px 16px; border: 2px solid var(--rule); border-radius: 4px; background: var(--card); line-height: 1.7; word-break: break-word; box-shadow: var(--hard-sm); }
.lt-panel .lt-msgb.is-me .lt-msgb-body { background: var(--mark); }
.lt-panel .lt-tk-reply { padding-top: 18px; border-top: 2px dashed var(--rule-soft); }
.lt-panel .lt-tk-closed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 2px dashed var(--rule-soft); border-radius: 4px; color: var(--ink-2); }
.lt-panel .lt-tk-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lt-panel .lt-tk-filter a { padding: 6px 12px; border: 2px solid var(--rule); border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--card); }
.lt-panel .lt-tk-filter a.is-on { background: var(--accent); color: var(--on-accent); }
.lt-panel .lt-tk-filter a b { margin-left: 4px; font: 700 12px var(--mono); }
.lt-panel .lt-tk-filter .form-control { width: 220px; }
.lt-panel .lt-tk-dl { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; margin: 0; }
.lt-panel .lt-tk-dl dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.lt-panel .lt-tk-dl dd { margin: 0; font-size: 14.5px; }
@media (max-width: 575.98px) { .lt-panel .lt-msgb { max-width: 100%; } }
