.dashboard-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dashboard-phrase-manager { margin-bottom: 16px; }
.dashboard-three-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.dashboard-three-column .dashboard-todo-panel { margin-bottom: 0; }
.dashboard-three-column .dashboard-todos { grid-template-columns: 1fr; max-height: 240px; overflow-y: auto; }
.dashboard-three-column .dashboard-summary-panel { min-width: 0; }
.dashboard-three-column .panel-head { align-items: flex-start; }
.dashboard-three-column .panel-head h2 { font-size: 16px; }
.dashboard-three-column .panel-head p { font-size: 12px; }
.dashboard-three-column .dashboard-schedules { max-height: 240px; overflow-y: auto; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.app-shell { transition: grid-template-columns .2s ease; }
.sidebar { transition: width .2s ease, padding .2s ease; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-collapse-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; font-size: 24px; transition: transform .2s ease; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; }
.sidebar nav .menu-icon, .sidebar nav .menu-label { padding: 0; }
.menu-icon { display: inline-grid; place-items: center; flex: 0 0 22px; width: 22px; min-height: 22px; font-size: 16px; font-weight: 700; }
.sidebar .link-button { display: flex; align-items: center; gap: 10px; }
body.sidebar-collapsed .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
body.sidebar-collapsed .sidebar { padding-right: 16px; padding-left: 16px; }
body.sidebar-collapsed .sidebar-brand-row { justify-content: center; }
body.sidebar-collapsed .sidebar .brand { display: none; }
body.sidebar-collapsed .sidebar-collapse-toggle { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar nav { margin-top: 36px; }
body.sidebar-collapsed .sidebar nav a { justify-content: center; padding-right: 10px; padding-left: 10px; }
body.sidebar-collapsed .sidebar .menu-label { display: none; }
body.sidebar-collapsed .sidebar form .link-button { justify-content: center; width: 100%; padding: 10px 0; }
.dashboard-recent-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 8px 7px 13px;
    border: 1px solid #dfe5ee;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-weight: 700;
}
.dashboard-recent-button:hover,
.dashboard-recent-button:focus-visible { border-color: #9fc5ff; background: #f5f9ff; outline: none; }
.dashboard-recent-button b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
}
.mobile-todo-button { display: none; }
.mobile-todo-list { display: grid; gap: 7px; margin-bottom: 14px; }
.mobile-todo-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.mobile-todo-list strong, .mobile-todo-list small { display: block; }
.mobile-todo-list small, .mobile-todo-list time { margin-top: 2px; color: var(--muted); font-size: 11px; }
.mobile-todo-check { width: 19px; height: 19px; border: 2px solid #c9d1db; border-radius: 50%; }
.dashboard-recent-panel { width: min(380px, 100%); padding: 24px 18px; }
.product-panel-trigger { width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.product-workspace-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 19; width: min(520px, 100vw); padding: 0 24px 30px; border-left: 1px solid #e4e9f0; background: #f7f8fa; box-shadow: -8px 0 30px #10182812; overflow-y: auto; transform: translateX(100%); transition: transform .22s ease; }
.product-workspace-panel.open { transform: none; }
.product-workspace-head { position: sticky; top: 0; z-index: 12; display: flex; align-items: flex-start; justify-content: space-between; margin: 0 -24px 20px; padding: 20px 24px; border-bottom: 1px solid #e4e9f0; background: #fff; }
.product-workspace-head h2 { margin: 0; }
.product-workspace-head p { margin: 3px 0 0; color: #667085; font-size: 12px; }
.product-workspace-head button { border: 0; background: none; font-size: 30px; cursor: pointer; }
.product-workspace-loading, .product-workspace-error { display: grid; place-items: center; min-height: 260px; color: #667085; }
.product-workspace-error { color: var(--danger); }
.product-workspace-content .topbar { display: none; }
.product-workspace-content .workspace-grid { grid-template-columns: 1fr; }
.product-workspace-content .workspace-hero { margin-top: 0; }
.product-workspace-content > .drawer-head { display: none; }
.product-workspace-content > .editor-tabs { top: 84px; }
body.product-workspace-open .main { width: calc(100% - 520px); }
.dashboard-recent-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 18px; border-bottom: 1px solid #edf0f5; }
.dashboard-recent-panel h2 { margin: 0; font-size: 18px; }
.dashboard-recent-head-actions { display: flex; align-items: center; gap: 8px; }
.dashboard-recent-head-actions > span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: #edf4ff; color: var(--blue); font-weight: 700; }
.dashboard-recent-head-actions > button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f6; font-size: 23px; cursor: pointer; }
.recent-activity-sections { display: grid; gap: 20px; padding-top: 14px; }
.activity-section + .activity-section { padding-top: 18px; border-top: 1px solid #edf0f5; }
.activity-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 0 3px; }
.activity-section-head h3 { margin: 0; font-size: 13px; }
.activity-section-head span { color: #98a2b3; font-size: 11px; }
.recent-activity-list { display: grid; gap: 8px; }
.recent-activity-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid #e5eaf1; border-radius: 13px; background: #fbfcfe; }
.recent-activity-card:hover { border-color: #b9d5ff; background: #f5f9ff; }
.activity-icon { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: #eaf2ff; color: var(--blue); font-size: 17px; }
.activity-icon img { width: 100%; height: 100%; object-fit: cover; }
.recent-activity-card em, .recent-activity-card strong, .recent-activity-card p, .recent-activity-card time { display: block; }
.recent-activity-card em { color: var(--blue); font-size: 10px; font-style: normal; font-weight: 700; }
.recent-activity-card strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.recent-activity-card p { margin: 2px 0 0; overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-activity-card time { margin-top: 5px; color: #98a2b3; font-size: 10px; }
.dashboard-phrase-manager.is-loading { position: relative; pointer-events: none; }
.dashboard-phrase-manager.is-loading::after { content: "문구를 불러오는 중입니다."; position: absolute; inset: 76px 0 0; display: grid; place-items: center; border-radius: 0 0 18px 18px; background: #ffffffd9; color: var(--blue); font-weight: 700; z-index: 3; }
.dashboard-scope-error { margin: 12px 0; padding: 10px 12px; border-radius: 9px; background: #fff0f1; color: var(--danger); }
.dashboard-phrase-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e5eaf1; margin: 0 0 4px; }
.dashboard-phrase-tabs a { padding: 10px 8px 12px; color: #667085; border-bottom: 2px solid transparent; font-weight: 700; }
.dashboard-phrase-tabs a.active { color: #1677ff; border-color: #1677ff; }
.dashboard-phrase-table-wrap { overflow-x: auto; }
.dashboard-phrase-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.dashboard-phrase-table th { padding: 12px; text-align: left; background: #f7f9fc; color: #667085; font-size: 12px; }
.dashboard-phrase-table td { padding: 13px 12px; border-top: 1px solid #edf0f5; vertical-align: middle; font-size: 13px; }
.dashboard-phrase-table th:first-child, .dashboard-phrase-table td:first-child { width: 54px; text-align: center; }
.dashboard-phrase-table th:last-child, .dashboard-phrase-table td:last-child { width: 92px; }
.phrase-cell { display: flex; gap: 9px; max-width: 380px; }
.phrase-cell strong { display: block; line-height: 1.45; font-weight: 600; }
.upload-choice-badge { display: inline-flex; margin-bottom: 5px; padding: 3px 7px; border-radius: 99px; background: #eaf2ff; color: #1b64da; font-size: 10px; font-style: normal; font-weight: 700; }
.phrase-cell small { display: block; color: #1677ff; margin-top: 4px; }
.phrase-product-cell { display: flex; align-items: center; gap: 9px; color: #202938; min-width: 165px; }
.phrase-product-cell .product-thumb { flex: 0 0 38px; width: 38px; height: 38px; }
.mobile-product-link { display: none; }
.table-actions { display: flex; gap: 6px; }
.icon-action { width: 34px; height: 34px; padding: 0; border: 1px solid #dfe5ee; background: #fff; border-radius: 8px; color: #344054; }

/* PC와 모바일에서 동일한 상품명 중심 추천문구 목록을 사용한다. */
.dashboard-phrase-table-wrap { overflow: visible; }
.dashboard-phrase-table { min-width: 0; }
.dashboard-phrase-table thead { display: none; }
.dashboard-phrase-table tbody,
.dashboard-phrase-table tr,
.dashboard-phrase-table td { display: block; width: 100%; }
.dashboard-phrase-table tr { border-top: 1px solid var(--line); }
.dashboard-phrase-table tr:first-child { border-top: 0; }
.dashboard-phrase-table td { display: none; padding: 0; border: 0; }
.dashboard-phrase-table td:nth-child(3) { display: block; }
.desktop-product-link { display: none; }
.mobile-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 13px 4px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.mobile-product-link:hover { color: var(--blue); }
.mobile-product-link strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mobile-product-link > span:last-child { flex: 0 0 auto; color: var(--blue); font-size: 12px; }
.mobile-product-link.is-readonly span { color: var(--muted); }
.mobile-product-link.is-readonly .dashboard-list-product-main strong { color: var(--text); }
.dashboard-list-product-main { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.dashboard-list-product-main time { display: flex; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.dashboard-list-product-main time b { font-size: 13px; font-weight: 700; }
.mobile-product-link .dashboard-list-product-main time span { color: var(--muted); font-size: 11px; font-weight: 400; }
.mobile-product-link .dashboard-list-product-thumb { display: block; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #f2f4f6; }
.mobile-product-link .dashboard-list-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dashboard-product-phrase-list { display: grid; }
.dashboard-product-phrase-list > .mobile-product-link { border-top: 1px solid var(--line); }
.dashboard-product-phrase-list > .mobile-product-link:first-child { border-top: 0; }

/* 예약 추가/수정은 화면 크기와 관계없이 모바일 하단 팝업 흐름을 사용한다. */
.drawer.bottom-sheet {
    left: 0 !important;
    right: 0 !important;
    z-index: 120;
    width: 100% !important;
    max-width: none;
    max-height: 94dvh !important;
    padding: 20px 14px 16px !important;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
}
.drawer.bottom-sheet.open { transform: none; }
body.bottom-sheet-open .drawer-backdrop.open { z-index: 119; }
.bottom-sheet .drawer-head {
    position: sticky;
    top: -20px;
    z-index: 10;
    margin: -10px -2px 12px;
    padding: 12px 2px 10px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
}
.bottom-sheet form,
.bottom-sheet .form-row,
.bottom-sheet .metric-inputs { display: grid !important; grid-template-columns: 1fr !important; gap: 0; }
.bottom-sheet form > * { grid-column: 1 !important; }
.bottom-sheet label,
.bottom-sheet .schedule-select-field { margin-bottom: 12px; }
.bottom-sheet input,
.bottom-sheet select,
.bottom-sheet textarea { min-height: 44px; padding: 10px 12px; }
.bottom-sheet .check-row { display: flex !important; min-height: 44px; }
.bottom-sheet .check-row input { min-height: 0; }
.schedule-phrase-fieldset > legend,
.desktop-comment-select { display: none; }
.mobile-relation-select-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 9px 11px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    text-align: left;
}
.mobile-relation-select-button > span { font-size: 12px; font-weight: 700; white-space: nowrap; }
.mobile-relation-select-button > em {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--blue);
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11px;
    font-style: normal;
    line-height: 1.3;
}
.mobile-selection-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.mobile-selection-header strong { font-size: 18px; }
.mobile-selection-header button {
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 9px;
    background: #edf4ff;
    color: #1b64da;
    font-weight: 700;
}
.bottom-sheet .schedule-image-picker:not([hidden]),
.bottom-sheet .comment-image-fieldset:not([hidden]),
.bottom-sheet [data-mobile-relation-picker].is-open {
    position: fixed;
    inset: 0;
    z-index: 122;
    display: block !important;
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0 14px 86px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    overscroll-behavior: contain;
}
.bottom-sheet .schedule-image-picker:not([hidden]) > .mobile-selection-header,
.bottom-sheet .comment-image-fieldset:not([hidden]) > .mobile-selection-header,
.bottom-sheet [data-mobile-relation-picker].is-open > .mobile-selection-header {
    display: flex;
    margin: 0 -14px 12px;
}
.mobile-selection-actions { display: inline-flex; align-items: center; gap: 8px; }
.mobile-selection-add { min-height: 34px; padding: 7px 10px; border: 0; border-radius: 9px; background: #edf4ff; color: #2563eb; font-size: 12px; font-weight: 800; cursor: pointer; }
.bottom-sheet .schedule-image-picker .upload-drop-zone { display: none; }
.schedule-mobile-upload-button { display: inline-flex; }
.bottom-sheet [data-mobile-relation-picker].is-open > .mobile-relation-select-button { display: none; }
[data-mobile-relation-picker="phrase"] .schedule-phrase-grid { display: none !important; }
[data-mobile-relation-picker="phrase"].is-open .schedule-phrase-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-height: none;
    margin-bottom: 12px;
    padding: 6px;
    background: #f4f6f8;
}
.mobile-comment-choice-list {
    display: grid;
    gap: 6px;
    max-height: none;
    margin-bottom: 12px;
    padding: 6px;
    overflow: visible;
    border-radius: 11px;
    background: #f4f6f8;
}
.mobile-comment-choice-list[hidden] { display: none !important; }
.mobile-comment-choice-list label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
}
.mobile-comment-choice-list label[hidden] { display: none; }
.mobile-comment-choice-list label:has(input:checked) { border-color: var(--blue); background: #edf4ff; }
.mobile-comment-choice-list input[type="radio"] { width: 19px; height: 19px; min-height: 19px; margin: 0; accent-color: var(--blue); }
.mobile-relation-confirm,
.mobile-selection-header.is-image-selection button {
    position: fixed;
    right: 14px;
    bottom: 12px;
    left: 14px;
    z-index: 124;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 24px #1018282b;
    font-weight: 800;
}
.mobile-relation-confirm { display: none; }
.bottom-sheet [data-mobile-relation-picker].is-open > .mobile-relation-confirm { display: inline-flex; }
.schedule-existing-images,
.comment-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-editor { width: min(480px, 100vw); }
.main { transition: width .22s ease; }
body:not(.workspace-drawer-open):not(.product-workspace-open) .main { width: 100%; }
body.workspace-drawer-open .main { width: calc(100% - 480px); }
.workspace-drawer { box-shadow: -1px 0 0 #e5eaf1; }
.workspace-drawer .drawer-head { align-items: flex-start; }
.workspace-drawer .drawer-head p { margin: 3px 0 0; color: #667085; font-size: 12px; }
.product-create-panel { width: min(480px, 100vw); }
.editor-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: #f1f4f8; padding: 4px; border-radius: 12px; margin-bottom: 20px; position: sticky; top: -28px; z-index: 2; }
.editor-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 11px; color: #667085; font-weight: 700; cursor: pointer; }
.editor-tabs button.active { background: #fff; color: #1677ff; box-shadow: 0 1px 4px #10182814; }
.editor-tabs b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 10px; background: #eaf2ff; }
.editor-tab-panel { display: none; }
.editor-tab-panel.active { display: block; }
.editor-phrase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.editor-phrase-head strong, .editor-phrase-head span { display: block; }
.editor-phrase-head span { color: #667085; font-size: 12px; margin-top: 2px; }
.editor-phrase-list { display: grid; gap: 12px; }
.editor-phrase-card { border: 1px solid #dfe5ee; border-radius: 14px; padding: 14px; background: #fbfcfe; }
.editor-phrase-card.is-upload-selected { border-color: #3182f6; background: #f4f8ff; box-shadow: inset 3px 0 0 #3182f6; }
.phrase-upload-choice { width: fit-content; padding: 7px 10px; border-radius: 9px; background: #eaf2ff; color: #1b64da; }
.editor-phrase-card textarea { background: #fff; line-height: 1.55; resize: vertical; }
.comment-edit-box { margin-top: 12px; border-top: 1px solid var(--line); }
.comment-edit-box summary { padding: 10px 0 4px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 700; }
.comment-edit-box form { margin-top: 10px; }
.comment-edit-box label { margin-bottom: 10px; }
.comment-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.mobile-comment-edit-button { display: inline-flex; }
.comment-card-actions form { margin: 0; }
.edit-log-details { margin-top: 8px; }
.edit-log-compact { margin-top: 0; }
.edit-log-details summary { display: inline-flex; align-items: center; width: fit-content; min-height: 34px; padding: 7px 10px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; color: #475467; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.edit-log-details summary::-webkit-details-marker { display: none; }
.edit-log-details[open] summary { border-color: #3182f6; background: #edf4ff; color: #1b64da; }
.edit-log-empty { margin-top: 8px; padding: 10px 12px; border-radius: 9px; background: #f7f8fa; color: var(--muted); font-size: 12px; }
.edit-log-list { display: grid; gap: 8px; margin-top: 8px; }
.edit-log-list article { padding: 11px; border: 1px solid #e4e9f0; border-radius: 10px; background: #fff; }
.edit-log-list strong { display: block; margin-bottom: 8px; color: #344054; font-size: 12px; }
.edit-log-list dl { display: grid; gap: 5px; margin: 0; }
.edit-log-list dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.edit-log-list dd { margin: 0; padding: 8px 9px; border-radius: 8px; background: #f7f8fa; color: var(--text); font-size: 12px; white-space: pre-wrap; }
.editor-phrase-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #667085; font-size: 11px; }
.editor-phrase-meta em { color: #1677ff; font-style: normal; }
.editor-phrase-meta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.editor-phrase-meta-actions .edit-log-details { position: relative; margin-top: 0; }
.editor-phrase-meta-actions .edit-log-list,
.editor-phrase-meta-actions .edit-log-empty { position: absolute; top: calc(100% + 6px); right: 0; z-index: 8; width: min(330px, 86vw); box-shadow: 0 12px 32px #10182824; }
.form-row.compact { gap: 8px; }
.form-row.compact label { margin-bottom: 10px; font-size: 12px; }
.editor-group-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.editor-group-checks label { display: flex; flex-direction: row; align-items: center; gap: 5px; width: auto; margin: 0; padding: 6px 9px; border-radius: 8px; background: #eef3f8; font-size: 11px; }
.editor-group-checks input { width: auto; }
.inline-save-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.inline-save-bar [data-save-status] { margin-right: auto; color: #087a37; font-size: 12px; }
.product-memo-toggle { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 14px; padding: 8px 11px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; color: #475467; cursor: pointer; font-weight: 700; }
.product-memo-toggle[aria-expanded="true"] { border-color: #3182f6; background: #edf4ff; color: #1b64da; }
.product-create-extra-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.product-create-extra-actions .product-memo-toggle { margin: 0; }
.product-ai-phrase-button { min-height: 39px; }
.product-ai-phrase-status { min-height: 18px; margin: -2px 0 8px; color: #667085; font-size: 12px; line-height: 1.45; }
.field-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.coupang-link-availability { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: #f2f4f7; color: #667085; font-size: 11px; font-weight: 800; white-space: nowrap; }
.coupang-link-availability.is-ready { background: #eafaf0; color: #087a37; }
.coupang-link-availability.is-blocked { background: #fff4e5; color: #b54708; }
.coupang-link-help { color: #667085; font-size: 12px; font-weight: 400; line-height: 1.45; }
.field-link-open { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #d7e1ef; border-radius: 8px; background: #fff; color: #2563eb; font-size: 11px; font-weight: 800; cursor: pointer; }
.field-link-open:hover { border-color: #b9cef2; background: #f4f8ff; }
.ai-product-lock-overlay { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.18); cursor: wait; }
.ai-product-lock-card { width: min(360px, 100%); padding: 22px; border: 1px solid #dbe5f2; border-radius: 18px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18); text-align: center; }
.ai-product-lock-card strong { display: block; margin-top: 10px; color: #101828; font-size: 16px; }
.ai-product-lock-card p { margin: 8px 0 0; color: #667085; font-size: 13px; line-height: 1.5; }
.ai-product-lock-spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #d8e6fb; border-top-color: #3182f6; border-radius: 999px; animation: ai-product-spin 0.8s linear infinite; }
@keyframes ai-product-spin { to { transform: rotate(360deg); } }
.product-memo-field[hidden] { display: none; }
[data-editor-panel$="-basic"] .inline-save-bar { position: sticky; bottom: -28px; z-index: 3; margin: 16px -28px -28px; padding: 12px 28px 28px; border-top: 1px solid #e8ecf2; background: #fff; }
.editor-record-list { display: grid; gap: 10px; }
.editor-record-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid #e0e6ee; border-radius: 12px; background: #fbfcfe; }
.editor-record-card time { color: #667085; font-size: 11px; }
.editor-record-card p { margin: 3px 0 0; color: #667085; font-size: 12px; }
.editor-record-card > a:last-child { color: var(--blue); font-size: 12px; }
.editor-record-card .post-url { display: block; overflow: hidden; color: #202938; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.editor-create-box { margin-bottom: 14px; border: 1px solid #cfe0f7; border-radius: 12px; background: #f7faff; }
.editor-create-box summary { padding: 11px 13px; color: var(--blue); font-weight: 700; cursor: pointer; list-style: none; }
.editor-create-box summary::-webkit-details-marker { display: none; }
.editor-create-box form { padding: 4px 13px 13px; }
.product-delete-form { margin-top: 22px; padding-top: 16px; }
.mobile-create-sheet-head { display: none; }
.mobile-post-sheet { display: none; }

body.mobile-create-open,
body.mobile-post-sheet-open { overflow: hidden; }
.mobile-floating-create-box[open] {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #10182880;
}
.mobile-floating-create-box[open] > summary { display: none; }
.mobile-floating-create-box[open] > .mobile-create-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(820px, calc(100% - 32px));
    padding: 15px 20px 12px;
    border-radius: 24px 24px 0 0;
    background: #fff;
}
.mobile-create-sheet-head strong { font-size: 18px; }
.mobile-create-sheet-head button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f6;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}
.mobile-floating-create-box[open] > form {
    width: min(820px, calc(100% - 32px));
    max-height: min(72vh, 680px);
    margin: 0;
    padding: 8px 20px 24px;
    overflow-y: auto;
    border-radius: 0;
    background: #fff;
    overscroll-behavior: contain;
}
@media (min-width: 801px) {
    .comment-editor-sheet[open] > .mobile-create-sheet-head,
    .comment-editor-sheet[open] > form,
    .phrase-editor-sheet[open] > .mobile-create-sheet-head,
    .phrase-editor-sheet[open] > form {
        width: calc(100% - 32px) !important;
        max-width: 650px !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
}
.mobile-post-create-button,
.mobile-post-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 9px;
    background: #edf4ff;
    color: #1b64da;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.mobile-post-create-button {
    min-height: 40px;
    margin-bottom: 12px;
    background: var(--blue);
    color: #fff;
}
.mobile-post-sheet {
    position: fixed;
    inset: 0;
    z-index: 75;
    align-items: flex-end;
    justify-content: center;
    background: #10182880;
}
.mobile-post-sheet.open { display: flex; }
.mobile-post-sheet-panel {
    width: min(820px, calc(100% - 32px));
    max-height: min(88vh, 820px);
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    overscroll-behavior: contain;
}
.mobile-post-sheet-panel > header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.mobile-post-sheet-panel > header strong { font-size: 18px; }
.mobile-post-sheet-panel > header button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f6;
    font-size: 24px;
    cursor: pointer;
}
.mobile-post-sheet-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 14px 20px 24px;
}
.mobile-post-sheet-panel form > .full,
.mobile-post-sheet-panel form > input[type="hidden"] { grid-column: 1 / -1; }
.mobile-post-metrics { grid-column: 1 / -1; }
.editor-create-box label { margin-bottom: 11px; }
.dashboard-image-modal { display: none; position: fixed; inset: 0; z-index: 60; padding: 32px; background: #10182880; overflow-y: auto; }
.dashboard-image-modal.open { display: grid; place-items: center; }
.dashboard-image-dialog { width: min(900px, 100%); max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #10182840; }
.dashboard-image-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dashboard-image-dialog h2 { margin: 0; }
.dashboard-image-dialog header p { margin: 4px 0 0; color: #667085; }
.dashboard-image-dialog header button { border: 0; background: none; font-size: 30px; cursor: pointer; }
.dashboard-image-dialog .upload-form { margin: 14px 0 20px; }
.image-bulk-download { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f3f6fa; }
.image-bulk-download label { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.image-bulk-download input { width: auto; }
.image-bulk-download span { margin-right: auto; color: #667085; font-size: 12px; }
.image-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.image-list-toolbar .image-sort-status { margin-top: 0; }
.image-grid-selector { display: none; align-items: center; flex: 0 0 auto; gap: 3px; padding: 3px; border-radius: 9px; background: #f1f4f8; }
.image-grid-selector button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #667085; cursor: pointer; font-size: 11px; font-weight: 700; }
.image-grid-selector button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px #1018281a; }
.image-select-check { position: absolute; top: 8px; left: 8px; z-index: 4; display: flex; flex-direction: row; align-items: center; gap: 4px; width: auto; margin: 0; padding: 5px 7px; border-radius: 8px; background: #fffffff0; box-shadow: 0 1px 5px #10182820; font-size: 11px; }
.image-select-check input { width: auto; }
.dashboard-modal-image-grid .image-card { position: relative; }
.dashboard-modal-image-grid .image-card[hidden] { display: none; }
.dashboard-modal-image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.image-auto-scroll-status { display: grid; place-items: center; min-height: 48px; margin-top: 10px; color: #667085; font-size: 12px; text-align: center; }
.image-auto-scroll-status:not(.is-complete)::after { content: ""; width: 18px; height: 18px; margin-top: 7px; border: 2px solid #dbe8ff; border-top-color: var(--blue); border-radius: 50%; animation: image-scroll-spin .8s linear infinite; }
.image-auto-scroll-status.is-complete { min-height: 34px; color: #98a2b3; }
@keyframes image-scroll-spin { to { transform: rotate(360deg); } }
body.image-modal-open { overflow: hidden; }
.dashboard-editor form h3 { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid #e8ecf2; font-size: 15px; }
.dashboard-editor form h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.dashboard-editor-product { display: flex; align-items: center; gap: 12px; }
.dashboard-editor-product .product-thumb.large { width: 64px; height: 64px; flex: 0 0 64px; }
.dashboard-group-fieldset { border: 1px solid #e1e6ee; border-radius: 10px; margin: 14px 0; padding: 12px; }
.dashboard-group-fieldset legend { padding: 0 6px; font-weight: 700; }
.drawer-sticky-actions { position: sticky; bottom: -24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 0; background: #fff; }
.phrase-extra-button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; min-width: 0; min-height: 28px; height: 28px; padding: 2px 5px 2px 9px; border: 1px solid #dbe8ff; border-radius: 999px; background: #edf4ff; color: #1b64da; cursor: pointer; font-size: 11px; font-weight: 700; }
.phrase-extra-button b { color: inherit; font-size: 11px; line-height: 1; }
.phrase-extra-button > span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.phrase-extra-button[aria-expanded="true"] { border-color: #9fc5ff; background: #dbeafe; color: #1b64da; }
.phrase-extra-button[aria-expanded="true"] > span { background: #1b64da; }
.phrase-extra-fields[hidden] { display: none; }
.phrase-extra-fields { margin-top: 9px; padding: 10px; border-radius: 10px; background: #f4f6f8; }
.phrase-choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 2px 0; overflow: visible; }
.phrase-choice-row label { display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 7px; min-height: 34px; margin: 0; padding: 7px 10px; border: 1px solid #e4e9f0; border-radius: 11px; background: #f7f9fc; color: #344054; font-size: 12px; font-weight: 700; white-space: nowrap; }
.phrase-choice-row label:has(input:checked) { border-color: #b9d5ff; background: #edf4ff; color: #1b64da; }
.phrase-choice-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.phrase-save-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.phrase-save-actions button { min-height: 38px; padding: 9px 13px; border-radius: 11px; font-weight: 700; }
.phrase-save-actions .text-danger { border: 0; background: #ef4444; color: #fff; }
.phrase-save-actions .text-danger:hover { background: #dc2626; }
.phrase-save-actions .text-danger[data-delete-phrase-endpoint] { margin-right: auto; order: -1; }
.phrase-save-actions .text-danger[data-delete-phrase-endpoint] ~ button:not(.text-danger) { margin-left: 0; }
.phrase-grid-modal { display: none; position: fixed; inset: 0; z-index: 80; place-items: center; padding: 32px; background: #10182880; overflow-y: auto; }
.phrase-grid-modal.open { display: grid; }
.phrase-grid-dialog { width: min(1080px, 100%); max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #10182840; }
.phrase-grid-dialog.compact-dialog { width: min(540px, 100%); }
.phrase-grid-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.phrase-grid-dialog h2 { margin: 0; }
.phrase-grid-dialog header p { margin: 4px 0 0; color: #667085; }
.phrase-grid-dialog header button { border: 0; background: none; font-size: 30px; cursor: pointer; }
.phrase-simple-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phrase-simple-grid article { display: flex; min-width: 0; flex-direction: column; padding: 14px; border: 1px solid #e1e6ee; border-radius: 13px; background: #fbfcfe; }
.phrase-simple-grid p { flex: 1; margin: 10px 0 14px; line-height: 1.65; white-space: normal; word-break: break-word; }
.phrase-simple-grid button { align-self: flex-end; }
.phrase-grid-meta { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; color: #667085; font-size: 11px; }
.phrase-grid-meta span, .phrase-grid-meta em { padding: 3px 7px; border-radius: 99px; background: #eef3f8; font-style: normal; }
.phrase-grid-meta em { background: #eaf2ff; color: #1b64da; }
.field-with-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.field-with-suffix em { color: #667085; font-size: 12px; font-style: normal; font-weight: 500; white-space: nowrap; }
.comment-delay-control { grid-template-columns: auto minmax(72px, 140px) auto minmax(82px, 1fr); justify-content: start; }
.comment-delay-control input { width: 100%; }
.schedule-preview-button { justify-self: end; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: #edf4ff; color: #1b64da; cursor: pointer; font-weight: 700; }
.schedule-preview-modal { display: none; position: fixed; inset: 0; z-index: 96; place-items: center; padding: 18px; background: #10182880; }
.schedule-preview-modal.open { display: grid; }
.schedule-preview-dialog { width: min(650px, 100%); max-height: 92dvh; padding: 20px; overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px #10182838; }
.schedule-preview-dialog > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.schedule-preview-dialog h2 { margin: 0; font-size: 20px; }
.schedule-preview-dialog > header button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f6; font-size: 24px; cursor: pointer; }
.threads-preview-card { margin-bottom: 16px; overflow: hidden; border: 1px solid #d7dce3; border-radius: 18px; background: #fff; }
.threads-preview-post { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 16px; }
.threads-preview-comment { border-top: 1px solid #e5e8eb; }
.threads-preview-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #111; color: #fff; font-weight: 800; }
.threads-preview-body { min-width: 0; }
.threads-preview-body strong { display: block; font-size: 14px; }
.threads-preview-body p { margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.threads-preview-body small { color: var(--muted); font-size: 11px; }
.threads-preview-images { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.threads-preview-images::-webkit-scrollbar { display: none; }
.threads-preview-images img { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; object-fit: cover; scroll-snap-align: start; }
.threads-preview-images img:only-child { aspect-ratio: 1.45 / 1; }
.threads-preview-images[data-count]:not([data-count="1"])::after { content: "1/" attr(data-count); position: sticky; right: 8px; align-self: start; justify-self: end; margin: 8px 8px 0 -48px; padding: 3px 8px; border-radius: 999px; background: #1119; color: #fff; font-size: 11px; pointer-events: none; }
.preview-affiliate-note { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f7f8fa; }
body.schedule-preview-open { overflow: hidden; }
.check-row { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; width: 100%; }
.check-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.schedule-image-toggle { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0 0 12px; padding: 9px 11px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; color: #475467; cursor: pointer; }
.schedule-image-toggle span { margin-left: auto; color: #1677ff; font-size: 12px; }
.schedule-image-toggle[aria-expanded="true"] { border-color: #3182f6; background: #f7faff; }
.schedule-selected-image-summary { display: none; }
.schedule-image-picker[hidden] { display: none; }
.schedule-image-picker { display: block; margin: -4px 0 14px; padding: 10px; border-radius: 10px; background: #f4f6f8; }
.schedule-existing-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 392px; margin-top: 10px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
.schedule-image-picker label { position: relative; display: block; aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; cursor: pointer; }
.schedule-image-picker label[hidden] { display: none; }
.schedule-image-picker label input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 18px; height: 18px; margin: 0; accent-color: #3182f6; }
.schedule-image-picker img { width: 100%; height: 100%; object-fit: cover; }
.schedule-image-picker p { grid-column: 1 / -1; margin: 6px; color: #667085; text-align: center; font-size: 12px; }
.schedule-direct-upload { padding-bottom: 10px; border-bottom: 1px solid #dfe5ee; }
.schedule-mobile-upload-button { display: none; }
.schedule-direct-upload .upload-drop-zone.compact { min-height: 92px; padding: 14px; }
.schedule-direct-upload .upload-drop-zone strong, .schedule-direct-upload .upload-drop-zone span { display: block; }
.schedule-direct-upload .upload-drop-zone span { margin-top: 3px; color: #667085; font-size: 12px; }
.schedule-direct-upload .upload-preview.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 8px; }
.schedule-direct-upload .upload-submit { margin-top: 8px; }
.schedule-upload-status { margin: 7px 0 0 !important; color: #1b64da !important; text-align: left !important; }
.schedule-phrase-fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.schedule-phrase-fieldset legend { margin-bottom: 7px; font-weight: 700; }
.schedule-relation-select-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.schedule-relation-select-row .desktop-comment-select { flex: 1 1 auto; margin: 0; }
.schedule-relation-add-button[hidden] { display: none; }
.schedule-relation-add-button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
.schedule-relation-create-panel[hidden] { display: none; }
.schedule-relation-create-panel { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(15, 23, 42, 0.16); }
.schedule-relation-create-card { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 18px; border: 1px solid #dbe5f2; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18); }
.schedule-relation-create-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.schedule-relation-create-card header strong { font-size: 17px; }
.schedule-relation-create-card header button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f2f4f7; cursor: pointer; }
.schedule-relation-create-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.schedule-relation-create-actions span { margin-right: auto; color: #667085; font-size: 12px; }
.bottom-sheet [data-mobile-relation-picker].is-open > .schedule-relation-select-row { display: none; }
.mobile-relation-select-button, .mobile-comment-choice-list, .mobile-relation-confirm { display: none; }
.mobile-selection-header { display: none; }
.schedule-phrase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 230px; overflow-y: auto; }
.schedule-phrase-grid label { position: relative; display: flex; align-items: flex-start; gap: 6px; min-width: 0; min-height: 58px; margin: 0; padding: 8px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; color: #475467; font-size: 11px; line-height: 1.35; cursor: pointer; }
.schedule-phrase-grid label[hidden] { display: none; }
.schedule-phrase-grid label:has(input:checked) { border-color: #3182f6; background: #edf4ff; color: #1b64da; }
.schedule-phrase-grid input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: #3182f6; }
.schedule-phrase-grid span { min-width: 0; overflow: hidden; }
.schedule-phrase-grid .is-none { grid-column: 1 / -1; min-height: auto; }
.comment-image-fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.comment-image-toggle, .comment-selected-image-summary { display: none; }
.bottom-sheet .comment-image-toggle:not([hidden]) { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 48px; margin: 0 0 12px; padding: 9px 11px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; color: #475467; text-align: left; }
.bottom-sheet .comment-image-toggle span { margin-left: auto; color: var(--blue); font-size: 11px; }
.comment-image-fieldset[hidden] { display: none; }
.comment-image-fieldset legend { margin-bottom: 7px; font-weight: 700; }
.comment-image-fieldset legend small { margin-left: 5px; color: #667085; font-weight: 400; }
.comment-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 196px; overflow-y: auto; }
.comment-image-grid label { position: relative; display: block; aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; cursor: pointer; }
.comment-image-grid label[hidden] { display: none; }
.comment-image-grid label:has(input:checked) { border-color: #3182f6; box-shadow: inset 0 0 0 2px #3182f6; }
.comment-image-grid input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 17px; height: 17px; margin: 0; accent-color: #3182f6; }
.comment-image-grid img { width: 100%; height: 100%; object-fit: cover; }
.comment-image-grid .is-none { display: grid; place-items: center; aspect-ratio: auto; min-height: 64px; padding: 8px; color: #667085; font-size: 11px; text-align: center; }
body.phrase-modal-open { overflow: hidden; }
@media (max-width: 1100px) {
    body.workspace-drawer-open .main { width: 100%; }
    body.dashboard-default-panel-open .main { width: 100%; }
    .dashboard-default-panel { display: none; }
    .dashboard-three-column { grid-template-columns: 1fr; }
    body.product-workspace-open .main { width: 100%; }
}
@media (max-width: 700px) {
    .dashboard-image-modal { padding: 12px; }
    .dashboard-image-dialog { max-height: calc(100vh - 24px); padding: 16px; }
    .dashboard-modal-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editor-tabs { grid-template-columns: 1fr 1fr; }
    .editor-record-card { grid-template-columns: 1fr auto; }
    .editor-record-card time { grid-column: 1 / -1; }
    .phrase-grid-modal { padding: 12px; }
    .phrase-grid-dialog { max-height: calc(100vh - 24px); padding: 16px; }
    .phrase-simple-grid { grid-template-columns: 1fr; }
    .phrase-save-actions { width: 100%; }
    .phrase-save-actions button { flex: 0 1 auto; }
    .phrase-save-actions .primary { flex: 1 1 140px; }
}
.dashboard-insight { min-width: 0; }
.dashboard-phrase-list, .dashboard-product-list { margin-top: 14px; }
.dashboard-phrase-list > a, .dashboard-product-list > a { position: relative; display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-phrase-list strong { overflow: hidden; line-height: 1.55; }
.dashboard-phrase-list span, .dashboard-phrase-list time, .dashboard-product-list span { color: var(--muted); font-size: 12px; }
.dashboard-phrase-list time { position: absolute; right: 0; bottom: 12px; }
.dashboard-product-list > a { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; }
.dashboard-product-list strong, .dashboard-product-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-product-list em { padding: 4px 7px; border-radius: 8px; background: #f2f4f6; color: var(--muted); font-size: 11px; font-style: normal; }
.dashboard-phrase-list.shared > a { padding-right: 48px; }
.mini-copy { position: absolute; right: 0; top: 50%; border: 0; border-radius: 8px; padding: 6px 8px; background: #f2f4f6; cursor: pointer; transform: translateY(-50%); }
.product-thumb { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: #f2f4f6; color: #adb5bd; font-size: 8px; line-height: 1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.simple-list .recent-product-row { grid-template-columns: 44px minmax(0, 1fr) 160px 100px; align-items: center; gap: 8px; }
.product-name-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.product-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.product-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "thumb main status" "thumb stats stats"; align-items: center; gap: 10px 12px; width: 100%; min-width: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.product-card:hover, .product-card:focus-visible { border-color: #9fc5ff; box-shadow: 0 8px 24px #10182812; outline: none; transform: translateY(-1px); }
.product-card-thumb { grid-area: thumb; width: 54px; height: 54px; border-radius: 13px; }
.product-card-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.product-card-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.product-card-main span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.product-card-status { grid-area: status; justify-self: end; }
.product-card-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.product-card-stats > span { display: grid; gap: 2px; min-width: 0; padding: 8px 9px; border-radius: 10px; background: #f7f9fc; }
.product-card-stats em { color: #98a2b3; font-size: 10px; font-style: normal; font-weight: 700; }
.product-card-stats b { overflow: hidden; color: #344054; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
body.product-workspace-open .product-card-grid { grid-template-columns: 1fr; }
.dashboard-status-form { margin: 0; }
.dashboard-status-form select { min-width: 94px; padding: 7px 24px 7px 9px; border: 0; border-radius: 9px; background: #edf4ff; color: #1b64da; font-size: 12px; font-weight: 700; cursor: pointer; }
.dashboard-calendar-panel { margin-bottom: 16px; }
.dashboard-calendar-heading { display: flex; align-items: center; gap: 9px; }
.dashboard-calendar-heading h2 { margin: 0; }
.dashboard-calendar-heading button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); cursor: pointer; font-size: 22px; line-height: 1; }
.dashboard-calendar-heading button:hover { border-color: #9fc2fa; background: #edf4ff; color: var(--blue); }
.dashboard-calendar-workbench { display: grid; grid-template-columns: 275px minmax(0, 1fr); margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.dashboard-mini-calendar { padding: 18px; border-right: 1px solid var(--line); }
.dashboard-mini-weekdays, .dashboard-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dashboard-mini-weekdays { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.dashboard-mini-weekdays span { padding: 4px 0; }
.dashboard-mini-weekdays span:first-child { color: var(--danger); }
.dashboard-mini-day { position: relative; display: grid; place-items: center; width: 29px; height: 29px; margin: 2px auto; border-radius: 50%; font-size: 12px; }
.dashboard-mini-day:hover { background: #edf4ff; color: var(--blue); }
.dashboard-mini-day.is-selected { background: #e7f1ff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); font-weight: 700; }
.dashboard-mini-day.is-today { background: var(--blue); color: #fff; font-weight: 700; }
.dashboard-mini-day.is-today.is-selected { box-shadow: 0 0 0 3px #3182f62b; }
.dashboard-mini-day i { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.dashboard-mini-day.is-today i { background: #fff; }
.dashboard-calendar-agenda { min-width: 0; }
.dashboard-calendar-agenda > header { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafbfc; color: var(--muted); font-size: 12px; }
.dashboard-calendar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-action-label { display: none; }
.schedule-tab-add-button { color: #fff; }
.schedule-detail-modal { display: none; position: fixed; inset: 0; z-index: 90; place-items: center; padding: 24px; background: #10182880; }
.schedule-detail-modal.open { display: grid; }
.schedule-detail-dialog { width: min(620px, 100%); max-height: min(78vh, 720px); overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px #10182840; }
.schedule-detail-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.schedule-detail-dialog h2, .schedule-detail-dialog p { margin: 0; }
.schedule-detail-dialog p { margin-top: 4px; color: var(--muted); }
.schedule-detail-dialog > header button { border: 0; background: none; font-size: 28px; cursor: pointer; }
.schedule-detail-list { display: grid; gap: 8px; margin-bottom: 18px; }
.schedule-detail-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 120px; align-items: start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.schedule-detail-row:hover { border-color: #b8d4ff; background: #f5f9ff; }
.schedule-detail-row time { color: var(--blue); font-weight: 700; }
.schedule-detail-row span { color: var(--muted); font-size: 12px; }
.schedule-detail-content { display: grid; gap: 4px; min-width: 0; }
.schedule-detail-content strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.schedule-detail-content small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.schedule-detail-product-link { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.schedule-detail-account { color: var(--blue) !important; }
.schedule-detail-comment-text { margin: 2px 0 0 !important; padding: 8px 10px; border-radius: 8px; background: #f6f8fb; color: var(--text) !important; font-size: 12px; white-space: pre-wrap; }
.schedule-detail-actions { display: grid; justify-items: end; gap: 8px; text-align: right; }
.schedule-detail-actions a { padding: 5px 7px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 10px; white-space: nowrap; }
body.schedule-detail-open { overflow: hidden; }
@media (max-width: 700px) {
    .dashboard-calendar-panel > .panel-head { align-items: stretch; flex-direction: column; }
    .dashboard-calendar-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-calendar-actions .primary { grid-column: 1 / -1; grid-row: 1; }
}
.dashboard-calendar-agenda > header strong { color: var(--text); font-size: 14px; }
.dashboard-agenda-row { display: grid; grid-template-columns: 88px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 7px 14px; border: 0; border-bottom: 1px solid var(--line); background: #f5f9ff; color: inherit; cursor: pointer; text-align: left; }
.dashboard-agenda-row time { font-size: 12px; font-weight: 700; }
.dashboard-agenda-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-agenda-row em { padding: 4px 7px; border-radius: 99px; background: #fff; color: var(--blue); font-size: 11px; font-style: normal; }
.dashboard-agenda-row.status-updated em { animation: agenda-status-pulse 1.2s ease; }
@keyframes agenda-status-pulse {
    0%, 100% { box-shadow: none; }
    40% { box-shadow: 0 0 0 5px #3182f628; background: #edf4ff; }
}
.dashboard-empty-agenda { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px; border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.dashboard-agenda-loading, .dashboard-agenda-error { display: grid; place-items: center; min-height: 180px; color: var(--muted); }
.dashboard-agenda-error { color: var(--danger); }
.dashboard-calendar-workbench.is-loading .dashboard-calendar-agenda { opacity: .7; }
@media (max-width: 1150px) { .dashboard-insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
    .dashboard-insight-grid { grid-template-columns: 1fr; }
    .simple-list .recent-product-row { grid-template-columns: 44px minmax(0, 1fr); }
    .dashboard-calendar-workbench { grid-template-columns: 1fr; }
    .dashboard-mini-calendar { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* 데스크톱에서도 모바일 예약 선택 UI가 최종 우선순위를 갖는다. */
.bottom-sheet .mobile-relation-select-button { display: grid; }
.bottom-sheet .mobile-comment-choice-list:not([hidden]) { display: grid; }
.bottom-sheet [data-mobile-relation-picker].is-open > .mobile-relation-confirm { display: inline-flex; }

@media (min-width: 801px) {
    #dashboard-schedule-create.drawer.bottom-sheet {
        left: 50% !important;
        right: auto !important;
        width: min(650px, calc(100% - 32px)) !important;
        max-width: 650px !important;
        transform: translate(-50%, 105%);
    }
    #dashboard-schedule-create.drawer.bottom-sheet.open { transform: translate(-50%, 0); }
    #dashboard-schedule-create [data-schedule-form] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 14px;
    }
    #dashboard-schedule-create [data-schedule-form] > * { grid-column: 1 / -1 !important; }
    #dashboard-schedule-create .schedule-account-field,
    #dashboard-schedule-create .schedule-auto-publish-field { grid-column: 1 !important; }
    #dashboard-schedule-create .schedule-datetime-field,
    #dashboard-schedule-create .schedule-publish-now-field { grid-column: 2 !important; }

    #dashboard-schedule-create .schedule-selected-image-summary:not([hidden]) {
        display: flex;
        gap: 7px;
        margin: -4px 0 12px;
        padding: 8px;
        overflow-x: auto;
        border: 1px solid #e5eaf1;
        border-radius: 10px;
        background: #f7f9fc;
        scrollbar-width: thin;
    }
    #dashboard-schedule-create .schedule-selected-image-summary img {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
        border-radius: 8px;
        object-fit: cover;
    }
}

@media (min-width: 801px) {
    details.comment-editor-sheet[open] > div.mobile-create-sheet-head,
    details.comment-editor-sheet[open] > form,
    details.phrase-editor-sheet[open] > div.mobile-create-sheet-head,
    details.phrase-editor-sheet[open] > form {
        width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        max-width: 650px !important;
        box-sizing: border-box !important;
        flex: 0 0 auto;
    }
}
.comment-autofill-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.comment-autofill-row span { color: var(--muted); font-size: 12px; }
.dashboard-group-fieldset legend small { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
.product-group-permission-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; align-items: center; gap: 10px; }
.product-group-permission-row label { margin-bottom: 0; }
.product-group-permission-row select { padding: 7px 9px; }
.shared-product-summary, .shared-product-content { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.shared-product-summary p { margin: 0 0 12px; color: var(--muted); }
.shared-product-content h3 { margin: 0 0 10px; }
.shared-product-content p { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #f7f8fa; white-space: pre-wrap; }
.shared-product-edit .dashboard-group-fieldset,
.shared-product-edit .product-delete-form,
.shared-product-edit .danger-zone,
.shared-product-edit .text-danger { display: none !important; }

.phrase-practice-page { max-width: 1280px; }
.phrase-practice-workspace { display: grid; grid-template-columns: 260px minmax(300px, .9fr) minmax(340px, 1.1fr); gap: 16px; align-items: start; }
.practice-product-panel, .practice-editor-panel, .practice-card-panel { min-width: 0; padding: 16px; border: 1px solid #e5eaf1; border-radius: 18px; background: #fff; }
.practice-product-panel h3, .practice-section-head h3 { margin: 0; font-size: 16px; }
.practice-product-mobile-select { display: none; }
.practice-product-list, .practice-saved-list, .practice-editor-form, .practice-card-form { display: grid; gap: 10px; }
.practice-product-list { max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 4px; }
.practice-product-link { display: grid; gap: 5px; padding: 12px; border: 1px solid #edf1f5; border-radius: 13px; color: var(--text); }
.practice-product-link:hover, .practice-product-link.active { border-color: #9fc5ff; background: #f3f8ff; }
.practice-product-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.practice-product-link span, .practice-section-head p, .practice-card-meta { color: var(--muted); font-size: 12px; }
.practice-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.practice-section-head p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: normal; }
.practice-editor-panel { padding: 18px; }
.practice-editor-panel .practice-section-head { margin-bottom: 12px; }
.practice-editor-panel .practice-section-head h3 { font-size: 20px; }
.practice-editor-panel .practice-section-head p { color: #667085; font-size: 14px; line-height: 1.35; }
.practice-editor-mobile-sheet > summary { display: none; }
.practice-editor-sheet-backdrop, .practice-editor-sheet-head { display: none; }
.practice-editor-mobile-sheet:not([open]) .practice-editor-sheet-panel { display: block; }
.practice-editor-sheet-panel { display: block; }
.practice-reference-phrases { position: relative; width: fit-content; }
.practice-reference-phrases > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 12px; border-radius: 10px; background: #edf4ff; color: var(--blue); cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; }
.practice-reference-phrases > summary::-webkit-details-marker { display: none; }
.practice-reference-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 120; display: grid; gap: 10px; width: min(420px, calc(100vw - 48px)); max-height: min(60vh, 520px); overflow-y: auto; padding: 14px; border: 1px solid #dbe5f2; border-radius: 16px; background: #fff; box-shadow: 0 22px 60px #1018282b; }
.practice-reference-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.practice-reference-panel h4 { margin: 0; font-size: 15px; }
.practice-reference-head button { min-height: 30px; padding: 6px 10px; border: 0; border-radius: 9px; background: #f2f4f7; color: #344054; cursor: pointer; font-size: 12px; font-weight: 800; }
.practice-reference-list { display: grid; gap: 8px; }
.practice-reference-list article { display: grid; gap: 6px; padding: 10px; border: 1px solid #edf1f5; border-radius: 12px; background: #fbfcfe; cursor: pointer; }
.practice-reference-list article:hover, .practice-reference-list article:focus-visible { border-color: #9fc5ff; background: #f3f8ff; outline: none; }
.practice-reference-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.practice-reference-list p { margin: 0; color: var(--text); white-space: pre-wrap; line-height: 1.4; }
.practice-reference-insert { justify-self: end; min-height: 30px; padding: 6px 12px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; cursor: pointer; font-size: 12px; font-weight: 800; }
.practice-reference-insert:hover, .practice-reference-insert:focus-visible { background: #1b64da; outline: none; }
.practice-editor-form textarea, .practice-card-form textarea { width: 100%; min-height: 96px; resize: vertical; }
.practice-editor-form { gap: 12px; }
.practice-editor-form label { margin: 0; font-size: 14px; }
.practice-editor-form textarea { min-height: 260px; padding: 14px; font-size: 14px; line-height: 1.45; }
.practice-card-form { margin: 0; }
.practice-card-form label { margin: 0; }
.practice-card-form textarea { min-height: 126px; padding: 13px 14px; line-height: 1.55; }
.practice-card-readonly-content { min-height: 126px; padding: 13px 14px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--text); font-weight: 700; line-height: 1.35; white-space: pre-wrap; }
.practice-memo-field textarea, .practice-memo-bubble textarea { min-height: 70px; }
.practice-editor-actions, .practice-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.practice-editor-actions { flex-wrap: wrap; justify-content: flex-end; }
.practice-editor-actions .danger { margin-right: auto; }
.practice-editor-actions .primary,
.practice-editor-actions .secondary,
.practice-editor-actions .danger { min-height: 40px; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 800; }
[data-practice-editor-form]:not([data-editing="1"]) [data-practice-editor-cancel],
[data-practice-editor-form]:not([data-editing="1"]) [data-practice-editor-delete],
[data-practice-editor-cancel][hidden],
[data-practice-editor-delete][hidden] { display: none !important; }
.practice-heart-button, .practice-heart-static { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 54px; min-height: 34px; padding: 7px 10px; border: 1px solid #ffd1dc; border-radius: 999px; background: #fff; color: #e0315b; font-size: 13px; font-weight: 800; line-height: 1; }
.practice-heart-button { cursor: pointer; }
.practice-heart-button span, .practice-heart-static span { font-size: 17px; line-height: 1; }
.practice-heart-button b, .practice-heart-static b { min-width: 9px; font-size: 12px; }
.practice-heart-button:hover, .practice-heart-button.active, .practice-heart-button[aria-pressed="true"] { background: #fff0f4; border-color: #ff9bb3; color: #d92d55; }
.practice-saved-card { position: relative; display: grid; gap: 12px; min-width: 0; overflow: visible; padding: 16px; border: 1px solid #e5eaf1; border-radius: 18px; background: #fbfcfe; }
.practice-saved-card:has(.practice-note-details[open]) { z-index: 20; }
.practice-saved-card.is-liked { border-color: #ffd1dc; background: #fff7fa; }
.practice-card-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 38px; }
.practice-card-meta > div { display: grid; gap: 3px; min-width: 0; }
.practice-card-meta strong { color: var(--text); font-size: 12px; }
.practice-card-meta form { margin: 0; }
.practice-card-date-actions { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.practice-card-header-actions { display: inline-flex; align-items: center; gap: 5px; color: #98a2b3; font-size: 11px; }
.practice-card-header-actions form { display: inline; }
.practice-card-header-actions button { min-height: 34px; padding: 8px 13px; border: 0; border-radius: 10px; background: #f2f4f7; color: #344054; cursor: pointer; font-size: 12px; font-weight: 800; }
.practice-card-header-actions form:first-child button { color: #ef4444; }
.practice-card-top-actions { display: flex !important; grid-auto-flow: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: max-content !important; }
.practice-comment-details { position: relative; }
.practice-comment-details summary { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 11px; border: 0; border-radius: 999px; background: #f2f4f7; color: #475467; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.practice-comment-details summary::-webkit-details-marker { display: none; }
.practice-comment-details[open] summary { background: #edf4ff; color: var(--blue); }
.practice-comment-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: min(340px, calc(100vw - 48px)); padding: 12px; border: 1px solid #dbe5f2; border-radius: 16px; background: #fff; box-shadow: 0 22px 60px #1018282b; }
.practice-note-details { position: absolute; top: 104px; right: 16px; z-index: 10; max-width: min(240px, calc(100% - 72px)); border: 0; border-radius: 0; background: transparent; }
.practice-note-details summary { display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px; max-width: 100%; min-height: 28px; padding: 5px 8px; border: 1px solid #dbeafe; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 8px 20px #1018281a; }
.practice-note-details summary::-webkit-details-marker { display: none; }
.practice-note-details[open] summary { border-color: #9fc5ff; background: #edf4ff; }
.practice-note-details summary b { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 10px; }
.practice-note-details[open] summary b { background: #fff; }
.practice-note-icon { flex: 0 0 auto; }
.practice-note-summary-text { overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.practice-note-details summary em { flex: 0 0 auto; color: #3182f6; font-size: 10px; font-style: normal; font-weight: 800; }
.practice-note-chip-list { position: static; z-index: 1; display: grid; gap: 6px; width: 100%; max-height: none; overflow: visible; padding: 0; }
.practice-note-chip { position: relative; display: inline-flex; align-items: flex-start; justify-self: start; gap: 5px; max-width: 100%; min-height: 28px; padding: 6px 9px; border: 1px solid #dbeafe; border-radius: 14px; background: #fff; color: var(--blue); box-shadow: 0 8px 20px #1018281a; font-size: 11px; font-weight: 800; line-height: 1.35; }
.practice-note-chip form { margin: 0; }
.practice-note-edit-details { position: relative; flex: 0 0 auto; }
.practice-note-edit-details summary { color: #3182f6; cursor: pointer; list-style: none; font-size: 10px; }
.practice-note-edit-details summary::-webkit-details-marker { display: none; }
.practice-note-edit-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: min(320px, calc(100vw - 48px)); padding: 10px; border: 1px solid #dbe5f2; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px #10182826; }
.practice-note-edit-panel form { display: grid; gap: 8px; }
.practice-note-edit-panel textarea { width: 100%; min-height: 72px; resize: vertical; }
.practice-note-edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.practice-note-edit-close, .practice-note-edit-save { width: 100%; min-height: 38px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 800; }
.practice-note-edit-close { background: #f2f4f7; color: #344054; }
.practice-note-edit-save { background: var(--blue); color: #fff; }
.practice-note-text-button { padding: 0; border: 0; background: transparent; color: #3182f6; cursor: pointer; font-size: 10px; font-weight: 800; }
.practice-note-create { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; align-items: end; padding-top: 2px; }
.practice-note-create textarea { min-height: 38px; max-height: 84px; padding: 9px 10px; border: 0; border-radius: 14px; background: #fff; resize: vertical; }
.practice-note-send { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #ffe812; color: #3a2c00; cursor: pointer; font-size: 16px; font-weight: 900; }
.practice-note-empty { padding: 16px 10px; color: #3c5066; font-size: 12px; text-align: center; }
.practice-note-list { display: grid; gap: 8px; }
.practice-note-bubble { position: relative; display: grid; gap: 4px; width: fit-content; max-width: 82%; padding: 8px 10px; border-radius: 13px; font-size: 13px; line-height: 1.45; }
.practice-note-bubble.mine { justify-self: end; background: #ffe812; color: #191600; border-top-right-radius: 4px; }
.practice-note-bubble.other { justify-self: start; background: #fff; color: #111827; border-top-left-radius: 4px; }
.practice-note-meta { display: flex; align-items: center; gap: 6px; color: #5b6675; font-size: 10px; }
.practice-note-bubble.mine .practice-note-meta { justify-content: flex-end; }
.practice-note-meta strong { color: #111827; font-size: 11px; }
.practice-note-bubble textarea { width: 100%; min-width: 180px; min-height: 46px; padding: 6px 7px; border: 0; border-radius: 9px; background: #fff9be; resize: vertical; font-size: 13px; }
.practice-note-bubble p { margin: 0; white-space: pre-wrap; }
.practice-note-icon-actions { display: inline-flex; justify-content: flex-end; margin-top: 3px; }
.practice-icon-button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #ffffffa6; color: #334155; cursor: pointer; font-size: 13px; font-weight: 900; }
.practice-note-bubble > form:last-child { position: absolute; right: -8px; top: -8px; }
.practice-icon-button.danger-icon { background: #ef4444; color: #fff; }
@media (max-width: 800px) {
    .phrase-practice-workspace { grid-template-columns: 1fr; }
    .practice-product-panel { padding: 12px; }
    .practice-product-panel h3 { display: none; }
    .practice-product-mobile-select { display: grid; gap: 6px; margin: 0; }
    .practice-product-mobile-select select { width: 100%; }
    .practice-product-list { display: none; }
    .practice-editor-panel { padding: 0; border: 0; background: transparent; }
    .practice-editor-panel > .practice-section-head { display: none; }
    .practice-editor-mobile-sheet:not([open]) .practice-editor-sheet-panel { display: none; }
    .practice-editor-mobile-sheet > summary { position: fixed; left: 16px; right: 16px; bottom: 18px; z-index: 70; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 16px; background: var(--blue); color: #fff; cursor: pointer; list-style: none; box-shadow: 0 16px 36px #3182f640; font-weight: 800; }
    .practice-editor-mobile-sheet > summary::-webkit-details-marker { display: none; }
    .practice-editor-mobile-sheet[open] .practice-editor-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 88; background: #10182866; }
    .practice-editor-mobile-sheet[open] .practice-editor-sheet-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; display: grid; gap: 14px; max-height: 82vh; overflow-y: auto; padding: 18px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -18px 48px #10182830; }
    .practice-editor-mobile-sheet[open] .practice-editor-sheet-head { display: grid; gap: 4px; }
    .practice-editor-sheet-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .practice-editor-sheet-head div { display: grid; gap: 4px; min-width: 0; }
    .practice-editor-sheet-head strong { font-size: 18px; }
    .practice-editor-sheet-head span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
    .practice-editor-sheet-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f4f7; color: #111827; cursor: pointer; font-size: 24px; line-height: 1; }
    .practice-editor-mobile-sheet[open] .practice-editor-form textarea { min-height: 220px; }
    .practice-reference-phrases { width: 100%; }
    .practice-reference-phrases > summary { width: 100%; }
    .practice-reference-panel { left: 50%; position: fixed; top: 50%; z-index: 130; width: min(360px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
    .practice-note-details { top: 104px; right: 18px; max-width: min(220px, calc(100% - 60px)); }
    .practice-note-chip-list { position: static; width: 100%; margin-top: -2px; padding-left: 0; }
    .practice-note-chip { gap: 8px; padding: 7px 10px; }
    .practice-note-edit-details summary,
    .practice-note-text-button { min-height: 30px; padding: 7px 10px; border-radius: 9px; background: #edf4ff; font-size: 12px; }
    .practice-note-text-button { color: #dc2626; background: #fee2e2; }
    .practice-note-edit-details[open] { z-index: 140; }
    .practice-note-edit-details[open]::before { content: ""; position: fixed; inset: 0; z-index: 138; background: #10182866; }
    .practice-note-edit-panel { position: fixed; left: 50%; right: auto; top: 50%; z-index: 139; width: min(340px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
    .practice-comment-panel { right: 0; width: min(340px, calc(100vw - 36px)); }
}
