:root{color-scheme:light;--ink:#352c32;--muted:#786d73;--line:#e5ddd6;--paper:#f6f3ee;--brand:#754052;--green:var(--brand);--dark:#30232c;--accent:#deba90;--red:#ac4141;--shadow:0 4px 20px #30232c05;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:10px 15px;font-weight:600;transition:.15s}button:hover{border-color:var(--green);background:#f5f2ef}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#492c3a;color:white}.danger{color:var(--red)}.small{padding:6px 10px;font-size:12px}.text-button{border:0;background:transparent;padding:6px;color:var(--green)}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}input,textarea,select{width:100%;background:#fff;border:1px solid #dacfd4;border-radius:7px;padding:11px 12px;color:var(--ink)}input[type=checkbox]{width:auto;accent-color:var(--green)}textarea{resize:vertical;line-height:1.7}label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}small,.muted{color:var(--muted);font-weight:400}.field{margin-bottom:18px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:10px}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:15px}p{line-height:1.8}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:700;letter-spacing:2px}.brand-icon{width:36px;height:36px;border-radius:11px;background:var(--accent);display:flex;align-items:center;justify-content:center;gap:3px}.brand-icon i{width:3px;background:var(--dark);border-radius:3px;height:12px}.brand-icon i:nth-child(2){height:21px}.brand-icon i:nth-child(3){height:28px}.brand-icon i:nth-child(4){height:17px}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:#e7d9e0;padding:32px 23px;position:fixed;inset:0 auto 0 0;width:225px;display:flex;flex-direction:column;z-index:3}.sidebar .brand{color:white;margin-bottom:9px}.side-caption{font-size:11px;color:#b093a1;letter-spacing:2px;margin:0 0 39px 47px}.nav{display:grid;gap:7px}.nav a{padding:13px 16px;border-radius:8px;color:#cdb6c1;text-decoration:none;font-weight:500}.nav a.active{background:#523643;color:#fff}.nav a:hover{background:#472c39}.nav small{color:#b496a4}.nav-group{font-size:10px;letter-spacing:2px;color:#a38794;margin:24px 16px 9px}.side-bottom{margin-top:auto;border-top:1px solid #523643;padding-top:20px}.avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#654554;color:#ede4e8}.userline{display:flex;align-items:center;gap:10px}.side-bottom .text-button{color:#d0b6c2}.side-bottom small{color:#af97a2}.main{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fbfbfa;display:flex;align-items:center;justify-content:space-between;padding:0 44px;gap:20px}.breadcrumb{font-size:12px;letter-spacing:1px;color:var(--muted)}.credit-pill{background:#ebe0e5;border:1px solid #e0ced6;padding:8px 13px;border-radius:30px;font-size:12px;white-space:nowrap}.credit-pill strong{font-size:16px;margin-right:5px}.page{max-width:1350px;padding:38px 44px 70px;margin:auto}.page-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);font-weight:700;margin-bottom:9px}.page-heading p{color:var(--muted);margin-bottom:0}.card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:25px}.workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:24px}.stack{display:grid;gap:22px;align-content:start}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.card-heading h2,.card-heading h3{margin:0}.step{font-size:10px;font-weight:700;letter-spacing:1px;color:#9b8a92;border:1px solid var(--line);padding:4px 7px;border-radius:5px}.dropzone{border:1.5px dashed #c3a9b5;border-radius:10px;min-height:230px;background:#faf8f6;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;cursor:pointer}.dropzone.drag{background:#ede2e7;border-color:var(--green)}.upload-icon{font-size:29px;color:var(--green);width:56px;height:56px;background:#ece2e7;border-radius:15px;display:grid;place-items:center;margin-bottom:17px}.dropzone strong{font-size:17px}.dropzone p{font-size:12px;margin:9px 0 18px;color:var(--muted)}.file-list{display:grid;gap:8px;margin-top:15px}.file-row{display:flex;align-items:center;justify-content:space-between;background:#f8f6f4;padding:12px;border-radius:7px;gap:10px}.file-row>div{overflow:hidden;text-overflow:ellipsis}.file-row strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.check-row{display:flex;align-items:start;gap:10px;font-weight:400;margin:0;padding:11px 0;border-bottom:1px solid #f1edef}.check-row input{margin-top:3px}.check-row span{flex:1}.check-row strong{font-size:13px}.check-row small{display:block;margin-top:4px;line-height:1.5}/* New transcription: compact dictionary choices; only selected descriptions expand. */
.dict-picker{min-width:0}.dict-picker.is-scrollable{max-height:220px;overflow-y:scroll;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable}.dict-picker.is-scrollable::-webkit-scrollbar{width:6px}.dict-picker.is-scrollable::-webkit-scrollbar-track{background:#f6f4f2;border-radius:6px}.dict-picker.is-scrollable::-webkit-scrollbar-thumb{background:#bda9b2;border-radius:6px}.dict-choice{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:0;padding:11px 6px;border-bottom:1px solid #f1edef;cursor:pointer;font-weight:400;line-height:21px}.dict-choice:last-child{border-bottom:0}.dict-choice:hover,.dict-choice:focus-within{background:#f7f5f2}.dict-choice>input{flex-shrink:0;margin:4px 0 0}.dict-choice-copy{flex:1;min-width:0}.dict-choice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px 10px;flex-wrap:wrap}.dict-choice-heading strong{min-width:0;font-size:13px;overflow-wrap:anywhere}.dict-choice-count{font-size:11px;white-space:nowrap}.dict-choice-description{display:none;line-height:1.6;font-size:12px;margin-top:4px;overflow-wrap:anywhere}.dict-choice>input:checked+.dict-choice-copy .dict-choice-description{display:block}
.notice{background:#f2ebee;color:#795867;border:1px solid #e6d7de;border-radius:9px;padding:13px 15px;font-size:12px;line-height:1.8}.submit-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.submit-row p{font-size:12px;color:var(--muted);margin:0}.submit-row button{padding:12px 25px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:25px}.stat{padding:20px 23px;background:white;border:1px solid var(--line);border-radius:11px}.stat small{font-size:12px}.stat strong{display:block;font-size:28px;font-weight:600;margin-top:9px}.stat em{font-style:normal;font-size:12px;font-weight:400;color:var(--muted);margin-left:7px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:20px}.toolbar input{max-width:400px}.toolbar select{max-width:170px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{font-weight:500;color:var(--muted);padding:13px 12px;background:#f8f6f4}td{padding:17px 12px;border-bottom:1px solid #f0ebed}td.title-cell{max-width:330px;white-space:normal;word-break:break-word}td small{display:block;margin-top:5px}td .actions{display:flex;gap:7px}.badge{display:inline-block;padding:4px 9px;border-radius:30px;background:#f1edef;color:#76646c;font-size:11px;white-space:nowrap}.badge.completed,.badge.approved{background:#efe5ea;color:#5a3747}.badge.running,.badge.queued{background:#eadde3;color:#5f3b4c}.badge.failed,.badge.cancelled{background:#f7e8e5;color:#a25348}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty strong{display:block;color:var(--ink);margin:12px;font-size:17px}.progress{height:7px;background:#efe7eb;border-radius:10px;overflow:hidden;margin:10px 0}.progress>span{display:block;height:100%;background:var(--green);transition:width .4s}.grid-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dict-card{display:flex;flex-direction:column;min-height:205px}.dict-card p{font-size:12px;color:var(--muted);flex:1;margin:13px 0}.dict-card .count{font-size:25px;line-height:1}.card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;margin-top:17px}.tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:25px;flex-wrap:wrap}.tabs button{border:0;background:transparent;font-weight:500}.tabs button.active{background:#eadfe4;color:var(--green)}.prose{max-width:830px;line-height:1.9}.prose h2{margin-top:29px}.prose li{margin:7px 0}.prose pre,.transcript{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font:14px/1.9 "Segoe UI","Microsoft YaHei",sans-serif}.prose pre{background:#f4f1ee;border:1px solid var(--line);padding:18px;border-radius:9px}.audio-player{width:100%;margin:15px 0}.detail-layout{display:grid;grid-template-columns:1fr 285px;gap:22px}.details{display:grid;gap:15px;font-size:12px}.details div{display:flex;justify-content:space-between;gap:15px}.details strong{text-align:right;font-weight:500}.segment{display:flex;gap:18px;border-bottom:1px solid #f0e9ec;padding:16px 0;line-height:1.9}.segment button{align-self:start;border:0;background:#f2eaee;color:var(--green);padding:5px 8px;font-size:11px;white-space:nowrap}.segment p{margin:0}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-art{background:var(--dark);padding:50px 65px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-art .brand{position:relative;z-index:1}.auth-art h1{font-size:54px;line-height:1.25;letter-spacing:-2px;font-weight:500;margin:70px 0 25px}.auth-art h1 em{color:var(--accent);font-style:normal}.auth-art p{max-width:380px;color:#cab3be;font-size:15px}.wave{display:flex;align-items:center;gap:8px;height:150px;margin:30px 0}.wave i{width:8px;border-radius:8px;background:#ae8095;height:var(--h);opacity:.75}.auth-foot{font-size:11px;color:#a98f9b;letter-spacing:1px}.auth-form{display:flex;align-items:center;justify-content:center;padding:50px;background:#faf9f8}.auth-form form{width:100%;max-width:370px}.auth-form h2{font-size:27px;margin-bottom:12px}.auth-form .muted{margin-bottom:30px}.auth-form button[type=submit]{width:100%;margin-top:5px;padding:13px}.auth-switch{text-align:center;margin-top:24px;font-size:13px}.error{color:var(--red);font-size:13px;line-height:1.7;margin:12px 0;min-height:20px}.auth-benefits{display:flex;gap:25px;font-size:12px;color:#dac4ce}.loading{text-align:center;padding:80px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:var(--dark);color:white;border-radius:9px;box-shadow:var(--shadow);z-index:50;display:none;max-width:90vw}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;max-width:660px;width:calc(100% - 32px);max-height:90vh;overflow:auto;box-shadow:0 24px 100px #1f131933}dialog::backdrop{background:#25161d55;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-head h2{margin:0}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.inline{display:flex;gap:15px}.inline>.field{flex:1}.balance{font-size:54px;line-height:1.2;letter-spacing:-2px;margin:18px 0}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px}.editor-actions{display:flex;gap:9px;margin-bottom:12px;flex-wrap:wrap}.section-divider{border-top:1px solid var(--line);margin:28px 0}.hidden{display:none!important}@media(max-width:1100px){.workspace,.detail-layout{grid-template-columns:1fr}.grid-cards{grid-template-columns:repeat(2,1fr)}.page{padding:30px}.topbar{padding:0 30px}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:auto;padding:20px}.sidebar .brand{font-size:20px}.side-caption,.nav-group,.side-bottom{display:none}.nav{display:flex;overflow:auto;margin-top:20px;gap:5px}.nav a{white-space:nowrap;padding:10px;font-size:12px}.sidebar .brand-icon{width:30px;height:30px}.topbar{height:60px;padding:0 20px}.page{padding:25px 18px}.page-heading{margin-bottom:22px}h1{font-size:26px}.card{padding:20px}.grid-cards{grid-template-columns:1fr}.stat-grid{gap:8px}.stat{padding:15px}.stat strong{font-size:23px}.toolbar{flex-wrap:wrap}.submit-row{align-items:flex-start;flex-direction:column}.submit-row button{width:100%}.auth{grid-template-columns:1fr}.auth-art{padding:25px}.auth-art h1{font-size:35px;margin:30px 0 15px}.wave,.auth-foot,.auth-benefits{display:none}.auth-art p{font-size:13px;margin-bottom:0}.auth-form{padding:35px 25px}.inline{display:block}.tabs{gap:4px}.tabs button{padding:8px}.page-heading>.primary{font-size:12px;padding:9px}.detail-layout{gap:15px}}

/* Dictionary pages and compact term tags */
.page.dictionary-page{max-width:none;width:100%;padding:24px 24px 160px}.dictionary-meta{margin-bottom:22px}.dictionary-meta .field{margin-bottom:6px}.dictionary-meta .check-row{border:0;margin-top:10px;padding-bottom:0}.dictionary-words{margin-bottom:20px}.term-add{display:flex;gap:10px;margin-bottom:14px}.term-add input{min-width:0;flex:1}.term-toolbar{display:flex;gap:12px;margin:20px 0 16px}.term-toolbar input{flex:1;min-width:0}.term-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.term-section-heading small{font-size:12px}.term-tags{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px;padding:6px 0 12px;overflow:visible}.term-tag{display:inline-flex;align-items:center;position:relative;max-width:100%;border:1px solid #e5d8de;border-radius:8px;background:#f5f3f0;transition:background .15s,border-color .15s}.term-tag:hover,.term-tag:focus-within{background:#ede3e8;border-color:#bda3af}.term-tag-edit,.term-tag-text{font-weight:500;font-size:13px;line-height:1.6;padding:7px 10px;overflow-wrap:anywhere;white-space:normal;text-align:left;min-width:0}.term-tag-edit{border:0;border-radius:7px;background:transparent}.term-tag-edit:hover{background:transparent}.term-tags .empty{width:100%;padding:40px 15px}.term-dialog{max-width:440px}.term-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;margin-top:18px}.term-dialog-actions .danger{margin-right:auto}.dictionary-times{font-size:11px;line-height:1.9;color:var(--muted);margin-top:14px}.dictionary-times time{font-variant-numeric:tabular-nums}.dictionary-savebar{position:fixed;z-index:20;left:calc(50% + 112.5px);right:auto;transform:translateX(-50%);width:560px;max-width:calc(100vw - 273px);bottom:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 20px;padding:14px 18px;background:#fff;border:1px solid #d9c7cf;border-radius:12px;box-shadow:0 8px 38px #331f2826}.dictionary-savebar strong{display:block;font-size:14px}.dictionary-savebar small{display:block;margin-top:4px;font-size:12px}.dictionary-savebar .primary{padding:12px 26px}.dictionary-savebar .error{grid-column:1/-1;margin:0;min-height:0}.dictionary-savebar .error:empty{display:none}.editor-leave{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.editor-leave>div{display:flex;gap:8px;flex-wrap:wrap}.editor-leave[hidden],#bulk-box[hidden]{display:none}.lexicon-policy{margin-top:20px}.lexicon-counts{margin:16px 0 8px}#term-feedback{color:var(--green);font-size:12px;margin-bottom:10px}#term-feedback:empty{display:none}#bulk-box{padding:14px;background:var(--paper);border-radius:9px}#bulk-box button{margin-top:8px}

@media(max-width:760px){.page.dictionary-page{padding:20px 16px 150px}.dictionary-meta .field{margin-bottom:14px}.dictionary-savebar{left:50%;right:auto;width:calc(100vw - 32px);max-width:560px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:12px 14px;gap:8px 12px}.dictionary-savebar .primary{padding:12px 18px}.dictionary-savebar strong{font-size:13px}.dictionary-savebar small{font-size:11px}.term-tags{gap:9px}.term-tag-edit,.term-tag-text{padding-top:10px;padding-bottom:10px}.term-toolbar{flex-wrap:wrap}.term-toolbar input{width:100%}.editor-leave{align-items:flex-start;flex-direction:column}.page-heading>#back-dictionaries{padding:8px;font-size:12px;white-space:nowrap}.term-dialog-actions{gap:8px}.term-dialog-actions button{min-height:42px}}
@media(hover:none),(pointer:coarse){.term-tag-edit{min-height:42px}}
body:has(.dictionary-savebar) #toast{bottom:120px;pointer-events:none}
@media(max-width:760px){body:has(.dictionary-savebar) #toast{bottom:calc(108px + env(safe-area-inset-bottom,0px));width:max-content;max-width:calc(100vw - 40px)}}

.dictionary-savebar .primary:disabled,.dictionary-savebar .primary:disabled:hover{background:#e7e5e6;border-color:#dbd6d8;color:#938a8e;opacity:1;cursor:default;box-shadow:none}.dictionary-savebar .primary[aria-busy="true"]{cursor:wait}

.dictionary-savebar[data-dirty="true"]{background:#fff8e5;border-color:#d2aa48;box-shadow:0 8px 38px #90650f30}.dictionary-savebar[data-dirty="true"] #editor-save-state{color:#7a5100}.dictionary-savebar[data-dirty="true"] #editor-save-state:before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#c58a14}.dictionary-savebar[data-dirty="true"] #editor-save-help{color:#82611e}

.dictionary-page .eyebrow{display:none}.dictionary-page .page-heading{margin-bottom:16px;align-items:center}.dictionary-page .page-heading h1{font-size:26px;margin-bottom:5px}.dictionary-page .page-heading p{font-size:12px;line-height:1.6}.dictionary-page .dictionary-meta,.dictionary-page .dictionary-words{padding:18px}.dictionary-page .dictionary-meta{margin-bottom:14px}.dictionary-page .dictionary-meta .field{margin-bottom:0}.dictionary-page .dictionary-meta label,.dictionary-words>label{margin-bottom:5px}.dictionary-page .dictionary-meta input:not([type=checkbox]),.dictionary-page .dictionary-meta select{padding:8px 10px}.dictionary-page .dictionary-meta .check-row{margin-top:8px;padding:5px 0 0}.dictionary-page .dictionary-meta .dictionary-times{display:flex;flex-wrap:wrap;column-gap:24px;row-gap:2px;margin-top:8px}.term-entry-row{display:flex;align-items:center;gap:10px}.term-entry-row .term-add{flex:1;margin:0}.term-entry-row .editor-actions{display:flex;gap:8px;flex-shrink:0;margin:0}.dictionary-page .term-toolbar{margin:12px 0}.dictionary-page .term-section-heading{margin-bottom:10px}.dictionary-page .dictionary-words{margin-bottom:14px}
@media(max-width:900px){.term-entry-row{flex-wrap:wrap}.term-entry-row .term-add{flex-basis:100%}}
@media(max-width:760px){.dictionary-page .dictionary-meta,.dictionary-page .dictionary-words{padding:16px}.dictionary-page .dictionary-meta .field+.field{margin-top:10px}.dictionary-page .page-heading h1{font-size:23px}.dictionary-page .page-heading{align-items:flex-start}.term-entry-row{gap:8px}.dictionary-page .term-section-heading{gap:6px}}

/* Use the full right column for the guide, retaining responsive page padding. */
.page.guide-page{max-width:none;width:100%}.guide-page>.prose{max-width:none;width:100%}

/* Keep whole-library deletion at the end of the page, away from editing and the fixed savebar. */
.dictionary-page #dict-form{display:flex;flex-direction:column;min-height:calc(100vh - 100px)}.dictionary-delete-area{margin-top:auto;padding-top:48px}.dictionary-delete-area[hidden]{display:none}.dictionary-delete-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0 12px;border-top:1px solid var(--line)}.dictionary-delete-row strong{display:block;color:var(--muted);font-size:12px;font-weight:500}.dictionary-delete-row small{display:block;margin-top:5px;font-size:12px}.dictionary-delete-row button{flex-shrink:0}

/* Badges fit their labels instead of stretching with their flex parents. */
.dict-card>.badge{align-self:flex-start}.check-row>.badge{flex:0 0 auto}

.cleanup-job{margin-top:8px}.minutes-markdown{min-width:0;max-width:100%;overflow-wrap:anywhere;font:14px/1.85 "Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink)}.minutes-markdown>:first-child{margin-top:0}.minutes-markdown h1{font-size:25px;line-height:1.45;letter-spacing:0;margin:1.2em 0 .65em}.minutes-markdown h2{font-size:20px;line-height:1.5;margin:1.5em 0 .7em;padding-bottom:.35em;border-bottom:1px solid var(--line)}.minutes-markdown h3{font-size:17px;margin:1.4em 0 .6em}.minutes-markdown h4,.minutes-markdown h5,.minutes-markdown h6{font-size:15px;margin:1.2em 0 .5em}.minutes-markdown p{margin:.8em 0}.minutes-markdown ul,.minutes-markdown ol{padding-left:1.7em;margin:.8em 0}.minutes-markdown li{margin:.4em 0}.minutes-markdown li>p{margin:.35em 0}.minutes-markdown strong{font-weight:650}.minutes-markdown blockquote{margin:1em 0;padding:.35em 1em;border-left:4px solid #b1909f;background:#f6f3f0;color:#65505a}.minutes-markdown blockquote p{margin:.4em 0}.minutes-markdown hr{border:0;border-top:1px solid var(--line);margin:1.5em 0}.minutes-markdown table{display:block;width:max-content;max-width:100%;overflow-x:auto;white-space:normal;margin:1.2em 0;border:1px solid var(--line);border-radius:7px;font-size:13px}.minutes-markdown th,.minutes-markdown td{padding:10px 13px;min-width:90px;max-width:360px;white-space:normal;border:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.minutes-markdown th{font-weight:600;color:var(--ink);background:#f2ebee}.minutes-markdown tr:nth-child(even){background:#fbfaf9}.minutes-markdown code{font:12px/1.7 Consolas,monospace;background:#f2eaee;border-radius:4px;padding:2px 5px}.minutes-markdown pre{max-width:100%;overflow-x:auto;padding:15px;background:#f5f2ef;border:1px solid var(--line);border-radius:8px;white-space:pre}.minutes-markdown pre code{padding:0;background:none;white-space:pre}.minutes-markdown a{text-decoration:underline;text-underline-offset:3px}.minutes-markdown .markdown-task{list-style:none;margin-left:-1.4em;display:list-item}.minutes-markdown .markdown-task>input{width:14px;height:14px;margin:0 .5em 0 0;vertical-align:middle;accent-color:var(--green)}.detail-layout>div{min-width:0}@media(max-width:760px){.minutes-markdown h1{font-size:22px}.minutes-markdown h2{font-size:18px}.minutes-markdown th,.minutes-markdown td{padding:8px 10px;min-width:85px}}

.admin-user-identity{min-width:180px;max-width:320px;white-space:normal}.admin-user-identity strong{display:block;overflow-wrap:anywhere}.admin-user-note{display:block;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;color:var(--muted)}#user-note{resize:vertical;min-height:88px}

.segment button.is-playing{background:var(--green);color:#fff}.segment button:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* 有词 · warm paper, mulberry ink and copper. */
::selection{background:#e9d5dc;color:#352c32}
body{line-height:1.55;-webkit-font-smoothing:antialiased}
.icon{width:20px;height:20px;flex:0 0 auto;vertical-align:middle}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
button:hover{background:#f5edef;border-color:#c4a6b0}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);border-color:var(--brand);color:#fff}
.primary:hover{background:#603244;border-color:#603244;color:#fff;text-decoration:none}
.primary .icon{width:17px;height:17px}
input,textarea,select{border-color:#d9cfc9;border-radius:8px}
input::placeholder,textarea::placeholder{color:#91848a}
.brand{gap:12px;letter-spacing:2px;font-weight:600}
.brand-name{font:600 30px/1.2 "Noto Serif SC","Songti SC",SimSun,serif;letter-spacing:4px}
.brand-icon{width:38px;height:38px;border-radius:0;background:transparent;color:#e8c7a4;box-shadow:none}
.brand-mark{display:block;width:100%;height:100%}
.sidebar{background:var(--dark);color:#eddee5;padding:32px 20px 24px;overflow-y:auto}
.sidebar .brand{padding-left:4px;margin-bottom:12px}
.side-caption{color:#d4b7a2;font-size:11px;letter-spacing:4px;margin:0 0 34px 54px}
.nav{gap:7px}
.nav a{display:flex;align-items:center;gap:13px;min-height:46px;padding:12px 16px;color:#cdbfc6;border:1px solid transparent;font-size:13px;border-radius:8px;transition:background .18s,color .18s}
.nav a .icon{width:19px;height:19px;opacity:.88}
.nav a.active{background:#563d4b;color:#fff4e8;border-color:#725161;box-shadow:inset 3px 0 #deba90}
.nav a.active .icon{color:#e8c7a4;opacity:1}
.nav a:hover{background:#45323e;color:#fff4e8}
.nav a.nav-create{margin-bottom:14px;border-color:#65505d;color:#f4e8ee}
.nav a:focus-visible{outline-color:#e8c7a4}
.side-bottom{border-color:#59434f;margin-top:auto;padding-top:20px}
.side-bottom .text-button{color:#dcc6d1;font-weight:400;font-size:12px}
.side-bottom .text-button:hover{background:#45323e}
.side-bottom small{color:#b6a0ab}
.avatar{background:#624454;color:#f1d8bf}
.topbar{height:72px;background:#fcfaf7;padding:0 40px;border-color:var(--line)}
.breadcrumb{color:var(--muted);font-size:12px;letter-spacing:.3px}
.breadcrumb-brand{color:var(--brand);font-weight:600;margin-right:10px}
.breadcrumb-brand+span{color:#b7a6ae;margin-right:10px}
.credit-pill{background:transparent;border:1px solid #dfd2c8;color:#705344;border-radius:7px;padding:6px 11px;font-size:11px}
.credit-pill strong{color:var(--brand);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.page{padding:34px 40px 70px}
.page-heading{align-items:center;margin-bottom:26px}
h1{font-size:30px;font-weight:600;letter-spacing:1px;line-height:1.4;margin-bottom:0}
.page-heading p{font-size:12px;margin-top:8px}
h2{font-size:19px;font-weight:600;letter-spacing:0}
h3{font-weight:600;line-height:1.65}
.card{border-radius:12px;box-shadow:var(--shadow);background:#fffefd}
.workspace{gap:22px;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr)}
.card-heading{margin-bottom:22px}
.step{color:#998779;border-color:#e5d7cb;border-radius:4px;padding:3px 7px;font-variant-numeric:tabular-nums}
.dropzone{background:#faf6f1;border-color:#c9b6a8;border-radius:9px;min-height:225px;transition:background .15s,border-color .15s}
.dropzone:hover,.dropzone:focus-visible,.dropzone.drag{background:#f5ede8;border-color:var(--brand)}
.upload-icon{background:#efe1da;color:var(--brand);width:50px;height:50px;border-radius:13px}
.upload-icon .icon{width:24px;height:24px;stroke-width:1.6}
.dropzone strong{font-size:17px;font-weight:500}
.dropzone p{line-height:1.85}
.file-row{background:#f7f1ed}
.check-row{border-color:#eee5df}
.check-row small{font-size:11px;line-height:1.7}
.notice{background:#f6efe6;border-color:#e9ddcd;color:#77604d}
.submit-row{gap:14px}
.submit-row p{font-size:11px;line-height:1.9}
.submit-row button{white-space:nowrap}
.vocabulary-selection{border-top:3px solid #b78d68}
.vocabulary-selection h2{display:flex;gap:8px;align-items:center}
.vocabulary-selection h2 .icon{color:var(--brand);width:21px;height:21px}
.selection-hint{font-size:12px;margin-bottom:24px}
.icon-link,.queue-note a{display:inline-flex;align-items:center;gap:3px;font-size:12px}
.icon-link .icon,.queue-note .icon,.tabs a .icon{width:14px;height:14px}
.dict-choice{border-color:#eee6df;border-radius:5px;padding:11px 7px}
.dict-choice:hover,.dict-choice:focus-within{background:#f6efed}
.dict-choice:has(input:checked){background:#f3e9ec}
.dict-choice-count{color:#827079}
.dict-picker.is-scrollable{scrollbar-color:#c3abb4 #f7f2ed}
.dict-picker.is-scrollable::-webkit-scrollbar-track{background:#f7f2ed}
.dict-picker.is-scrollable::-webkit-scrollbar-thumb{background:#c3abb4}
.queue-note{margin:0;padding:0 4px;font-size:12px;color:var(--muted);line-height:1.9}
.quiet-details{color:var(--muted);font-size:12px;line-height:1.8}
.quiet-details summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;padding:6px 0;color:#75666d}
.quiet-details summary::-webkit-details-marker{display:none}
.quiet-details summary:before{content:"+";font-size:15px;font-weight:400;line-height:1}
.quiet-details[open] summary:before{content:"−"}
.quiet-details p{max-width:800px;margin:8px 0 0;padding:12px 16px;background:#f1eae4;border-radius:6px}
.library-page{max-width:none}
.library-page .tabs{gap:10px;align-items:center;padding-bottom:13px;margin-bottom:24px}
.tabs button{color:var(--muted);padding:9px 15px}
.tabs button:hover{background:#f0e7e7}
.tabs button.active{background:#ebdde2;color:var(--brand);font-weight:600}
.tabs a{font-size:12px}
.grid-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dict-card{position:relative;padding:24px 24px 20px;min-height:320px;transition:border-color .18s,box-shadow .18s}
.dict-card:hover{border-color:#c9acb7;box-shadow:0 8px 28px #52354109}
.library-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.library-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dfcbd2;background:#f3e9ed;border-radius:8px;color:var(--brand)}
.library-icon .icon{width:21px;height:21px}
.library-card-top .badge{background:#f1ede8;color:#817064;font-size:10px;padding:3px 8px}
.library-card-top .library-active{background:#f2e8dc;color:#805a35}
.dict-card .card-heading{margin-bottom:12px}
.dict-card h3{font-size:16px;letter-spacing:.2px}
.dict-card .count{font-size:35px;letter-spacing:-1px;font-weight:500;font-variant-numeric:tabular-nums;color:#684151}
.dict-card .count small{font-size:12px;letter-spacing:0;margin-left:3px}
.dict-card p{font-size:12px;line-height:1.9;margin:16px 0 12px;color:#7a6e73}
.dict-card p:empty{display:none}
.dict-card>.badge{background:#eee7e2;color:#786555}
.dictionary-times{font-size:10px;line-height:1.85;margin-top:13px}
.dictionary-times .badge{font-size:10px}
.card-footer{margin-top:18px;padding-top:16px}
.card-footer>small{font-size:11px}
.card-footer button{color:var(--brand);border-color:#dfcdd4;background:#fffdfc}
.library-policy{margin-top:22px;border-top:1px solid var(--line);padding-top:12px}
.term-tag{border-color:#e3d6dd;background:#f5eff2;border-radius:6px}
.term-tag:hover,.term-tag:focus-within{border-color:#b895a5;background:#ede0e7}
.term-tag-edit{color:#664152}
.term-tag-edit,.term-tag-text{font-size:13px;font-weight:400}
.dictionary-savebar{border-color:#deced5;box-shadow:0 8px 38px #52354118;border-radius:10px}
.dictionary-savebar .primary:disabled,.dictionary-savebar .primary:disabled:hover{background:#ede8e9;color:#9b9096;border-color:#e0d8dc}
.dictionary-savebar[data-dirty="true"]{background:#fff4e5;border-color:#c6a177;box-shadow:0 8px 38px #61411d20}
.badge{background:#eee9e6;color:#77696f}
.badge.completed,.badge.approved{background:#ede1e8;color:#754052}
.badge.running,.badge.queued{background:#f4e7cf;color:#8b632e}
.badge.failed,.badge.cancelled{background:#f7e8e5;color:#a25348}
th{background:#f5f0eb}td{border-color:#ede4de}
tbody tr:hover{background:#fcf8f5}
.stat{background:#fffefd}.stat strong{color:var(--brand);font-variant-numeric:tabular-nums}
.progress{background:#ece2e7}.progress>span{background:var(--brand)}
.segment{border-color:#eee5df}.segment button{background:#f0e7ec;color:var(--brand)}
.segment button.is-playing{background:var(--brand);color:#fff}
.minutes-markdown blockquote{border-left-color:#b58c9c;background:#f6f0f2;color:#6d5360}
.minutes-markdown th{background:#f1e9e4}.minutes-markdown tr:nth-child(even){background:#fcf9f6}
.minutes-markdown code,.minutes-markdown pre,.prose pre{background:#f4eeeb}
dialog::backdrop{background:#30232c60}
.auth{grid-template-columns:1.08fr 1fr;background:#faf7f2}
.auth-art{background:var(--dark);padding:48px 64px;color:#fff6ec;min-height:100vh}
.auth-story{padding:54px 0 48px}
.auth-kicker{font-size:12px;letter-spacing:5px;color:#c4a69e}
.auth-art h1{font:400 clamp(64px,6.8vw,100px)/1.35 "Noto Serif SC","Songti SC",SimSun,serif;letter-spacing:6px;margin:28px 0 28px}
.auth-art h1 em{color:#e2bc91;font-style:normal}
.auth-art p{font-size:15px;letter-spacing:3px;color:#cdbbc3;line-height:1.9;margin:0}
.auth-words{display:flex;gap:12px;flex-wrap:wrap;margin-top:38px}
.auth-words span{padding:7px 14px;border:1px solid #6a4d5b;border-radius:5px;color:#d9c3ce;font-size:12px;letter-spacing:1px}
.auth-foot{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #5b414f;padding-top:20px;font-size:10px;letter-spacing:2px;color:#b69ba9}
.auth-form{background:#faf7f2;padding:45px}
.auth-form h2{font-size:27px;font-weight:500;letter-spacing:1px}
.auth-form .eyebrow{color:#a67c60;font-size:10px;letter-spacing:2px;margin-bottom:16px}
.auth-form .muted{font-size:13px;margin-bottom:28px}
.auth-form input{background:#fffefc;padding:13px}
.auth-privacy{border-top:1px solid var(--line);padding-top:20px;margin-top:28px;color:#887780;font-size:11px;line-height:1.9}
@media(min-width:1500px){.library-page .grid-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.page,.topbar{padding-left:28px;padding-right:28px}.auth-art{padding:42px}.submit-row{flex-wrap:wrap}}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.auth-art{padding:34px}.auth-form{padding:36px}.auth-art h1{font-size:68px}.auth-foot{flex-direction:column;gap:8px}}
@media(max-width:760px){
 .sidebar{padding:20px 18px 12px;overflow:visible}
 .sidebar .brand{padding:0;margin-bottom:0;gap:10px}.brand-name{font-size:27px}.sidebar .brand-icon{width:34px;height:34px}
 .side-caption{display:block;margin:-23px 0 0 auto;width:fit-content;font-size:10px;letter-spacing:3px;line-height:23px}
 .nav{gap:5px;margin-top:22px;padding-bottom:2px;scrollbar-width:thin;scrollbar-color:#715463 transparent}
 .nav a{min-height:42px;padding:10px 12px;gap:7px;flex:0 0 auto;font-size:12px;border-radius:6px}
 .nav a .icon{width:17px;height:17px}.nav a.nav-create{margin:0 5px 0 0}
 .nav a.active{box-shadow:inset 0 -2px #deba90}
 .topbar{height:54px;padding:0 18px;gap:12px}.breadcrumb{font-size:11px}.breadcrumb-brand{margin-right:5px}.breadcrumb-brand+span{margin-right:5px}
 .credit-pill{padding:5px 8px;font-size:10px}.credit-pill strong{font-size:13px}
 .page{padding:24px 18px 55px}.page-heading{margin-bottom:20px;gap:12px}.page-heading h1{font-size:25px;letter-spacing:.5px}
 .page-heading>.primary{font-size:12px;padding:9px 12px;white-space:nowrap}.card{padding:20px}.workspace{gap:18px}
 .grid-cards{grid-template-columns:1fr;gap:15px}.dict-card{min-height:0;padding:21px}.library-card-top{margin-bottom:14px}.dict-card .card-heading{margin-bottom:12px}
 .dict-card .count{font-size:31px}.dict-card p{margin:13px 0}.library-page .tabs{gap:5px;flex-wrap:wrap;margin-bottom:18px}.tabs button{padding:8px 10px;font-size:12px}.tabs a{font-size:11px}
 .dropzone{min-height:210px;padding:22px 15px}.dropzone strong{font-size:16px}.check-row>.badge{font-size:10px;padding:3px 7px}.submit-row button{width:100%}
 .auth{grid-template-columns:1fr}.auth-art{padding:24px;min-height:0}.auth-story{padding:24px 0 0}.auth-kicker{display:none}
 .auth-art h1{font-size:45px;line-height:1.25;margin:0 0 14px;letter-spacing:3px}.auth-art h1 br{display:none}.auth-art p{font-size:12px;letter-spacing:2px}.auth-words,.auth-foot{display:none}
 .auth-form{padding:30px 25px 36px}.auth-form h2{font-size:24px}.auth-form .eyebrow{font-size:9px;margin-bottom:12px}.auth-privacy{margin-bottom:0}
 .dictionary-page .page-heading h1{font-size:23px}.quiet-details p{padding:12px}.term-tag-edit{min-height:42px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Administration: separate the approval notice from its search controls. */
.admin-user-notice{margin-bottom:16px}

/* A continuous tonal surface across the entire authentication cover. */
.auth-art{position:relative;isolation:isolate;overflow:hidden;background:#30232e}
.auth-atmosphere{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;z-index:-1}
.auth-art>.brand,.auth-story,.auth-foot{position:relative;z-index:1}
.auth-story{display:block;padding:64px 0 56px;max-width:580px}
.auth-copy{max-width:none}
.auth-art h1{font-size:clamp(68px,6.7vw,112px);line-height:1.3;letter-spacing:5px;margin:26px 0 32px}
.auth-art h1 em{color:#dfbea0}
.auth-kicker{font-size:11px;letter-spacing:5px;color:#bfa7aa}
.auth-art p{font-size:14px;letter-spacing:3px;color:#d1bec3}
.auth-words{gap:0;margin-top:34px;align-items:center;color:#bba2ac}
.auth-words span{padding:0;border:0;border-radius:0;font-size:11px;letter-spacing:2px;color:inherit}
.auth-words span+span:before{content:"";display:inline-block;width:15px;height:1px;background:#a67d86;vertical-align:middle;margin:0 14px;opacity:.65}
.auth-foot{border-color:#86657455;color:#b197a1}
@media(min-width:1700px){.auth-art{padding-left:72px;padding-right:64px}.auth-story{padding-bottom:62px}}
@media(min-width:761px) and (max-width:1050px){.auth-art h1{font-size:clamp(60px,7.8vw,80px);letter-spacing:3px}.auth-story{padding:40px 0}.auth-art p{font-size:13px;letter-spacing:2px}.auth-words span+span:before{margin:0 10px;width:10px}}
@media(max-width:760px){
 .auth-art{padding:24px;background:#352632}
 .auth-story{padding:26px 0 0;max-width:none}
 .auth-art h1{font-size:clamp(36px,9.5vw,48px);line-height:1.3;letter-spacing:2px;margin:0 0 14px}
 .auth-art h1 br{display:none}
 .auth-art p{font-size:11px;letter-spacing:1.5px}
 .auth-kicker,.auth-words,.auth-foot{display:none}
}

/* A quiet, explicit preference for the reactive voice-wave background. */
.auth-foot-tools{display:flex;align-items:center;gap:24px}
.auth-motion{padding:3px 0;border:0;border-radius:2px;background:transparent;color:#d6bdc6;font:inherit;letter-spacing:1px;white-space:nowrap;cursor:pointer}
.auth-motion:hover{color:#f0d4b6;background:transparent}
.auth-motion:focus-visible{outline:1px solid #dfbea0;outline-offset:6px}
.motion-check{position:fixed;bottom:18px;right:18px;z-index:30;max-width:calc(100vw - 36px);padding:16px 20px;background:#fffaf3;color:#30232e;border:1px solid #d5c4c7;border-radius:8px;box-shadow:0 4px 24px #30232e1a;font-size:12px}
.motion-check pre{font:12px/1.8 ui-monospace,monospace;white-space:pre-wrap;margin:10px 0}
@media(max-width:1050px){.auth-foot-tools{gap:20px;justify-content:space-between}}

/* Decorative copy stays fixed and cannot be selected while moving the pointer. */
.auth-art{-webkit-user-select:none;user-select:none}

/* Mobile navigation and transcription order. */
.sidebar-heading,.topbar-location{display:flex;align-items:center;gap:12px;min-width:0}
.sidebar-heading{justify-content:space-between;flex-shrink:0}
.menu-toggle,.menu-close,.menu-backdrop{display:none}
.account-actions{display:flex;gap:4px;margin-top:15px}
.user-copy{min-width:0;overflow-wrap:anywhere}
.new-job-workspace{grid-template-areas:"audio vocabulary" "submit submit" "notes notes";align-items:start}
.audio-setup{grid-area:audio;min-width:0}
.new-job-workspace>.vocabulary-selection{grid-area:vocabulary;min-width:0}
.vocabulary-actions{display:flex;align-items:center;gap:13px;flex-shrink:0}
.transcription-submit{grid-area:submit;min-width:0}
.transcription-submit .submit-row{margin:0;padding:0;border:0}
.job-notes{grid-area:notes;display:flex;justify-content:space-between;align-items:start;gap:16px;min-width:0}
.job-notes .queue-note{margin:0}
.job-notes .quiet-details{margin:0;max-width:420px}
@media(max-width:1050px){.new-job-workspace{grid-template-areas:"audio" "vocabulary" "submit" "notes"}}
@media(max-width:760px){
 body.nav-open{overflow:hidden}
 .shell>.sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,calc(100vw - 48px));height:100vh;height:100dvh;z-index:61;display:flex;flex-direction:column;overflow:hidden;padding:calc(20px + env(safe-area-inset-top,0px)) 18px calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-100%);visibility:hidden;transition:transform .24s ease,visibility .24s;overscroll-behavior:contain}
 .shell>.sidebar.is-open{transform:translateX(0);visibility:visible}
 .sidebar-heading .brand{margin:0;padding:0;gap:10px}
 .sidebar .side-caption{display:block;width:auto;margin:5px 0 24px 44px;line-height:20px;flex-shrink:0}
 .sidebar .nav{display:flex;flex-direction:column;align-items:stretch;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;gap:6px;overscroll-behavior:contain}
 .sidebar .nav a{min-height:46px;padding:12px 14px;gap:12px;font-size:14px;flex:0 0 auto}
 .sidebar .nav a.nav-create{margin:0 0 8px}
 .sidebar .nav a.active{box-shadow:inset 3px 0 #deba90}
 .sidebar .side-bottom{display:block;flex-shrink:0;margin-top:16px;padding-top:16px}
 .sidebar .account-actions{margin-top:8px;gap:8px}
 .sidebar .account-actions button{min-height:44px;padding:10px 8px;font-size:13px}
 .menu-toggle,.menu-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:10px;background:transparent;border:0;border-radius:8px}
 .menu-toggle .icon,.menu-close .icon{width:22px;height:22px}
 .menu-toggle{color:var(--ink);margin-left:-10px}
 .menu-close{color:#e8c7a4;margin-right:-8px}
 .menu-close:hover{background:#45323e}
 .menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:60;border:0;border-radius:0;background:#241b2466;padding:0;touch-action:none}
 .topbar{position:sticky;top:0;z-index:10;height:60px;padding:0 18px;gap:8px}
 .topbar-location{gap:6px;flex:1}
 .breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
 .breadcrumb-brand,.breadcrumb-brand+span{display:none}
 .credit-pill{flex-shrink:0}
 .job-notes{flex-direction:column;gap:12px}
 .job-notes .quiet-details{width:100%;max-width:none}
 .transcription-submit .submit-row{gap:16px}
 .transcription-submit #submit-job{min-height:48px}
}

/* Compact narrow-screen rhythm; keep controls comfortable to tap. */
.summary-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:2px}
.summary-option>input{grid-column:1;grid-row:1}
.summary-option>.summary-copy{display:contents}
.summary-option strong{grid-column:2;grid-row:1}
.summary-option small{grid-column:2/-1;grid-row:2;margin:0}
.summary-option>.badge{grid-column:3;grid-row:1;align-self:start}
@media(max-width:1050px){
 .page{padding-top:24px;padding-bottom:44px}
 .page-heading{margin-bottom:18px}
 .workspace,.stack{gap:16px}
 .card-heading{margin-bottom:16px}
 .field{margin-bottom:14px}
 .inline{gap:14px}
 .audio-setup .file-list:empty{margin:0}
 .section-divider{margin:20px 0}
 .selection-hint{margin-bottom:16px}
}
@media(max-width:760px){
 .topbar{height:54px;padding-left:16px;padding-right:16px}
 .page{padding:18px 16px 36px}
 .page-heading{gap:10px;margin-bottom:16px}
 .page-heading h1{font-size:24px}
 .page-heading p{margin-top:5px}
 .card{padding:16px}
 .card-heading{margin-bottom:14px;gap:10px}
 .workspace,.stack,.detail-layout{gap:14px}
 h2{font-size:18px}
 label{margin-bottom:6px}
 input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px;padding:9px 10px;min-height:44px}
 .field{margin-bottom:12px}
 .inline{gap:12px}
 .dropzone{min-height:0;padding:16px 12px}
 .upload-icon{width:40px;height:40px;margin-bottom:10px;border-radius:11px}
 .upload-icon .icon{width:22px;height:22px}
 .dropzone p{margin:7px 0 12px;font-size:11px;line-height:1.8}
 #choose{min-height:44px}
 .section-divider{margin:18px 0}
 .check-row{padding:9px 0;gap:8px}
 .check-row small{margin-top:2px}
 .summary-option{column-gap:8px;row-gap:2px}
 .summary-option small{margin-top:0}
 .summary-option>.badge{font-size:9px;padding:2px 5px;white-space:nowrap}
 .selection-hint{margin-bottom:12px}
 .vocabulary-selection h3{margin-bottom:6px}
 .vocabulary-selection h3:not(:first-of-type){margin-top:18px!important}
 .dict-choice{min-height:44px;padding:10px 5px}
 .vocabulary-actions{gap:10px}
 .transcription-submit .submit-row{gap:12px}
 .transcription-submit .submit-row p{margin:0}
 .job-notes{gap:6px}
 .tabs,.library-page .tabs{gap:4px;padding-bottom:8px;margin-bottom:16px}
 .tabs button{padding:6px 9px;min-height:40px}
 .grid-cards{gap:12px}
 .dict-card{padding:16px;min-height:0}
 .library-card-top{margin-bottom:10px}
 .library-icon{width:32px;height:32px}
 .library-icon .icon{width:19px;height:19px}
 .dict-card .card-heading{margin-bottom:6px}
 .dict-card .count{font-size:28px;line-height:1.3}
 .dict-card p{margin:8px 0;line-height:1.7}
 .dictionary-times{margin-top:9px;line-height:1.7}
 .card-footer{margin-top:12px;padding-top:10px}
 .card-footer button{min-height:40px}
 .page.dictionary-page{padding:18px 16px 120px}
 .dictionary-page .dictionary-meta,.dictionary-page .dictionary-words{padding:14px}
 .dictionary-page .dictionary-meta input:not([type=checkbox]),.dictionary-page .dictionary-meta select{padding:9px 10px}
 .dictionary-page .dictionary-meta .check-row{min-height:40px;align-items:center;margin-top:4px}
 .dictionary-page .dictionary-meta .check-row input{margin-top:0}
 .dictionary-page .term-toolbar{margin:10px 0}
 .dictionary-page .term-section-heading{margin-bottom:6px}
 .term-tags{gap:8px;padding:4px 0 6px}
 .term-tags .empty{padding:24px 12px}
 .dictionary-savebar{padding:10px 12px;gap:6px 10px;bottom:calc(10px + env(safe-area-inset-bottom,0px))}
 .dictionary-savebar small{margin-top:2px}
 .dictionary-savebar .primary{min-height:44px;padding:10px 16px}
 .dictionary-delete-area{padding-top:28px}
 .dictionary-delete-row{gap:14px;padding-top:16px}
 .toolbar{gap:8px;margin-bottom:14px}
 .toolbar input{min-width:0}
 .toolbar select{max-width:none;width:auto;flex:1;min-width:120px}
 .toolbar button{min-height:44px}
 th{padding-top:10px;padding-bottom:10px}
 td{padding-top:12px;padding-bottom:12px}
 .pagination{gap:10px;margin-top:14px}
 .pagination button{min-height:44px}
 .notice{padding:12px;line-height:1.7}
 .admin-user-notice{margin-bottom:14px}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
 .stat{padding:12px 14px}
 .stat strong{font-size:22px;margin-top:5px}
 .stat button{min-height:40px}
 .audio-player{margin:6px 0 12px}
 .details{gap:12px}
 .segment{padding-top:12px;padding-bottom:12px}
 .prose{line-height:1.8}
 .prose h2{margin-top:22px;margin-bottom:10px}
 .prose pre{padding:14px}
 .prose li{margin:5px 0}
 .minutes-markdown h2{margin-top:1.2em}
 dialog{padding:20px;max-height:calc(100dvh - 32px)}
 .dialog-head{margin-bottom:16px}
 .dialog-head button{min-width:40px;min-height:40px}
 .dialog-foot,.term-dialog-actions{margin-top:14px}
 dialog .error:empty,.auth-form .error:empty{display:none}
 dialog button{min-height:44px}
 .auth{grid-template-rows:auto 1fr;align-content:start}
 .auth-art{padding:20px}
 .auth-story{padding:18px 0 0}
 .auth-art h1{font-size:clamp(32px,9vw,42px);margin-bottom:8px}
 .auth-form{padding:24px 24px 28px;align-items:flex-start}
 .auth-form h2{margin-bottom:8px}
 .auth-form .eyebrow{margin-bottom:10px}
 .auth-form .muted{margin-bottom:20px}
 .auth-form .field{margin-bottom:14px}
 .auth-form input{padding:10px 12px}
 .auth-form button[type=submit]{min-height:48px;margin-top:4px}
 .auth-switch{margin-top:18px}
 .auth-privacy{margin-top:22px;padding-top:16px}
}

/* The narrow topbar continues the mulberry sidebar palette. */
@media(max-width:760px){
 .topbar{background:var(--dark);color:#eddee5;border-bottom-color:#59434f}
 .topbar .breadcrumb{color:#eddee5}
 .topbar .menu-toggle{color:#e8c7a4}
 .topbar .menu-toggle:hover{background:#45323e}
 .topbar .menu-toggle:focus-visible,.topbar .credit-pill:focus-visible{outline-color:#e8c7a4}
 .topbar .credit-pill{color:#d4b7a2;border-color:#65505d}
 .topbar .credit-pill strong{color:#e8c7a4}
}

/* Use the existing narrow topbar title once; retain unique page names and actions. */
@media(max-width:760px){
 .topbar .breadcrumb{font-size:17px;font-weight:600;line-height:1.35;letter-spacing:.3px}
 .page-heading.title-in-topbar>div>h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 .page-heading.title-in-topbar:not(:has(p)):not(:has(>button)):not(:has(>a)){margin-bottom:0}
 .page-heading.title-in-topbar>div>p{margin-top:0}
}

/* Horizontal finger gestures shape the artwork; keep native scrolling and zoom. */
.auth-art{touch-action:pan-y pinch-zoom}

/* Compact library controls and readable recording rows on narrow screens. */
@media(max-width:760px){
 .library-header{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;gap:4px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:16px}
 .library-header .page-heading,.library-header .tabs{display:contents}
 .library-header .page-heading>div{position:absolute}
 .library-header [data-dtab]{grid-row:1;font-size:12px;padding:6px;white-space:nowrap}
 .library-header [data-dtab="general"]{grid-column:1}
 .library-header [data-dtab="private"]{grid-column:2}
 .library-header #new-dict{grid-column:4;grid-row:1;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:6px 8px;background:transparent;color:var(--brand);border:1px solid #dfcbd4;font-size:12px;white-space:nowrap}
 .library-header #new-dict:hover{background:#f0e7e7}
 .library-header #new-dict .icon{width:14px;height:14px}
 .library-header .library-guide{grid-column:5;grid-row:1;display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:32px;min-height:40px;margin:0!important;font-size:11px;white-space:nowrap}
 .library-header .library-guide .icon{width:13px;height:13px}
 .history-page>.page-heading{margin-bottom:0}
 .history-page>.page-heading>.primary{display:none}
 #history-table .table-wrap{overflow:visible}
 #history-table table,#history-table tbody{display:block;white-space:normal}
 #history-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 #history-table tbody tr{display:grid;grid-template-columns:max-content minmax(0,1fr) auto;gap:9px 12px;align-items:start;padding:15px 0;border-bottom:1px solid var(--line)}
 #history-table tbody tr:first-child{padding-top:4px}
 #history-table td{min-width:0;padding:0;border:0}
 #history-table .title-cell{grid-column:1/-1;grid-row:1;max-width:none}
 #history-table .title-cell a{display:flex;align-items:center;gap:12px;min-height:44px;padding:2px 0;font-size:14px;line-height:1.65}
 #history-table .title-cell a strong{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
 #history-table .title-cell a:after{content:'›';flex:none;font-size:22px;font-weight:400;color:#ac8d9b}
 #history-table .title-cell small{font-size:11px;margin-top:2px;line-height:1.5}
 #history-table .job-duration{grid-row:2;grid-column:1}
 #history-table .job-cost{grid-row:2;grid-column:2}
 #history-table .job-duration,#history-table .job-cost{font-size:12px;line-height:24px;color:var(--muted)}
 #history-table .job-status{grid-row:2;grid-column:3;text-align:right;min-width:60px;max-width:100px}
 #history-table .job-status .progress{margin:7px 0 0}
 #history-table .job-status small{margin-top:4px;font-size:10px}
 #history-table .job-detail{display:none}
 #history-table .pagination{flex-wrap:wrap;gap:8px}
}
@media(max-width:360px){
 .library-header .library-guide span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .library-header .library-guide .icon{width:17px;height:17px}
}

/* Real neighbouring pages are prepared offscreen, without their own navigation. */
.swipe-prefetch{position:fixed;left:0;top:0;width:100vw;height:100dvh;border:0;visibility:hidden;pointer-events:none;z-index:-1}
.swipe-preview .sidebar{display:none!important}
.swipe-preview .shell{display:block}
.swipe-preview .main{display:block;grid-column:auto}
.page-swipe-layer{position:fixed;left:0;right:0;bottom:0;z-index:20;overflow:hidden;background:var(--paper);pointer-events:none;user-select:none;-webkit-user-select:none}
.page-swipe-pane{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;background:var(--paper);will-change:transform}
.swipe-visible-preview{display:block;width:100%;height:100%;border:0;pointer-events:none}
.page-swipe-active #app>.shell>.main{visibility:hidden}
.page-swipe-active .topbar{pointer-events:none}

/* Long descriptions lead each mobile record; numbers and actions stay secondary. */
@media(max-width:760px){
 .mobile-records{overflow:visible}
 .mobile-records table,.mobile-records tbody{display:block;width:100%;white-space:normal}
 .mobile-records thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .mobile-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:14px 0;align-items:start;border-bottom:1px solid var(--line)}
 .mobile-records tbody tr:first-child{padding-top:3px}
 .mobile-records td{padding:0;border:0;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;line-height:1.7}
 .mobile-records .record-title{grid-column:1/-1;font-size:14px;font-weight:600;line-height:1.7}
 .mobile-records td small,.mobile-records .admin-user-note{font-size:11px;font-weight:400;line-height:1.7;margin-top:3px;overflow-wrap:anywhere}
 .mobile-records .record-meta{font-size:11px;color:var(--muted)}
 .mobile-records [data-label]:before{content:attr(data-label);font-size:11px;font-weight:400;color:var(--muted);margin-right:7px}
 .mobile-records .record-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
 .mobile-records button{min-height:40px;padding:8px 12px;font-size:12px}
 .mobile-records td .actions{flex-wrap:wrap;gap:6px}
 .mobile-records .record-title small{color:var(--muted)}
 .ledger-records .ledger-note{order:1}
 .ledger-records .ledger-user{grid-column:1/-1;order:2}
 .ledger-records .ledger-time{grid-column:1/-1;order:3}
 .ledger-records .ledger-amount{order:4;grid-column:1;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
 .ledger-records .ledger-balance{order:4;grid-column:2;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;align-self:center}
 .admin-task-records tbody tr,.user-records tbody tr{grid-template-columns:max-content minmax(0,1fr) auto}
 .admin-task-records .record-title{grid-row:1}
 .admin-task-records .job-duration{grid-row:2;grid-column:1}
 .admin-task-records .job-cost{grid-row:2;grid-column:2}
 .admin-task-records .job-duration,.admin-task-records .job-cost{font-size:12px;line-height:24px;color:var(--muted)}
 .admin-task-records .job-status{grid-row:2;grid-column:3;min-width:60px;max-width:100px;text-align:right}
 .admin-task-records .progress{margin:7px 0 0}
 .admin-task-records .job-detail{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
 .admin-task-records .job-detail:not(:has(button)),.admin-task-records .actions:empty{display:none}
 .user-records .admin-user-identity{grid-row:1}
 .user-records .user-role{grid-column:1;grid-row:2;font-size:12px}
 .user-records .user-credits{grid-column:2;grid-row:2;font-size:12px}
 .user-records .user-state{grid-column:3;grid-row:2;font-size:12px;text-align:right}
 .user-records .user-created{grid-column:1/-1;grid-row:3}
 .user-records .user-actions{grid-row:4}
 .audit-records td{grid-column:1/-1}
 .audit-records .audit-target{order:1}
 .audit-records .audit-action{order:2}
 .audit-records .audit-user{order:3}
 .audit-records .audit-time{order:4}
 .audit-records .audit-target small{font-size:12px}
 .model-records td{grid-column:1/-1}
 .domain-records .domain-dictionaries{grid-column:1/-1}
 .domain-records .domain-state{text-align:right}
 .collection-records td{grid-column:1/-1}
 .collection-records .collection-reason{font-size:12px}
}

/* Every moving page owns its header, content and full-height paper background. */
.page-swipe-copy{position:absolute;inset:0;overflow:hidden;background:var(--paper)}
.page-swipe-copy>.topbar{position:absolute;inset:0 0 auto;z-index:2}
.page-swipe-pane+ .page-swipe-pane{box-shadow:-1px 0 0 var(--line)}

/* Applicant messages remain distinct from editable administrator notes. */
.user-application{margin-top:9px;padding-top:8px;border-top:1px solid var(--line);font-size:12px}
.application-label{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
.application-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.65}
.application-review{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:14px 16px;margin-bottom:18px}
.application-review h3{font-size:13px;margin:0 0 7px}.application-review p{font-size:13px;margin:0}
#registration-message{min-height:88px;resize:vertical}
@media(max-width:760px){.application-review{padding:12px;margin-bottom:14px}.user-application{margin-top:7px;padding-top:6px}}

/* One searchable ledger view serves both the toolbar and user-balance links. */
.user-ledger-link{display:inline-flex;align-items:center;min-height:28px;padding:0 3px;font-weight:600;text-decoration:underline;text-underline-offset:3px;font-variant-numeric:tabular-nums}
.ledger-search{margin-bottom:18px}.ledger-search input{flex:1;min-width:100px}.ledger-search button{white-space:nowrap}
.ledger-summary{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;margin-bottom:16px}
.ledger-summary h2{margin:0;font-size:18px;overflow-wrap:anywhere}.ledger-summary small{white-space:nowrap}
.ledger-pagination{flex-wrap:wrap;gap:8px}
@media(max-width:760px){.user-ledger-link{min-height:32px}.ledger-search{gap:8px;margin-bottom:14px}.ledger-search input{max-width:none}.ledger-summary{margin-bottom:12px}.ledger-summary h2{font-size:16px}.ledger-pagination small{margin-right:auto}}
