:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f6f7f8;color:#000}*{box-sizing:border-box}body{min-height:100vh;margin:0;background:#f6f7f8}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-frame{min-height:100vh;display:flex;flex-direction:column;padding:max(18px,env(safe-area-inset-top)) 14px calc(88px + env(safe-area-inset-bottom));background:#f6f7f8}.app-header{width:min(100%,860px);margin:0 auto;display:flex;align-items:center;gap:12px;padding:6px 2px 16px}.app-header img{width:42px;height:42px;border-radius:8px}.app-header h1{margin:0;color:#000;font-family:Palatino Linotype,Palatino,Georgia,serif;font-size:17px;font-style:italic;font-weight:500;line-height:1.18;letter-spacing:0;white-space:nowrap}.app-content{width:min(100%,860px);margin:0 auto;flex:1}.surface{min-height:220px;padding:18px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;box-shadow:0 14px 34px #16181d14;color:#000}.page-stack{display:grid;gap:16px}.page-stack h2,.page-stack h3,.result-block h2,.phrase-block h3,.unassigned-notes h3{margin:0;color:#000;letter-spacing:0}.page-stack h2,.result-block h2{font-size:20px;line-height:1.25}.page-stack h3,.phrase-block h3,.unassigned-notes h3{font-size:14px}.page-stack p,.result-block p,.note-item p,.note-item small{margin:0;color:#000}.page-stack label{display:grid;gap:7px;color:#000;font-size:13px;font-weight:700}.page-stack select,.page-stack textarea,.page-stack input{width:100%;border:1px solid #ccd3dc;border-radius:8px;background:#fbfcfd;color:#000;outline:none}.page-stack select:focus,.page-stack textarea:focus,.page-stack input:focus{border-color:#000;box-shadow:0 0 0 3px #0f766e1f}.page-stack select,.page-stack input{min-height:42px;padding:0 12px}.page-stack select option{background:#fff;color:#000}.page-stack textarea{min-height:168px;padding:12px;line-height:1.55;resize:vertical}.page-stack button,.action-row button{min-height:42px;padding:0 13px;border:1px solid #28313d;border-radius:8px;background:#fff;color:#000;font-weight:750}.page-stack button:hover:not(:disabled),.action-row button:hover:not(:disabled){border-color:#000;color:#000}.result-block{display:grid;gap:14px}.translation-paragraph-list{display:grid;gap:12px}.translation-paragraph{display:grid;gap:12px;padding:14px;border:1px solid #e2e6eb;border-radius:8px;background:#fbfcfd}.paragraph-heading{display:flex;justify-content:space-between;gap:10px;color:#000;font-size:12px;font-weight:750}.paragraph-pair{display:grid;gap:12px}.field-label{display:inline-block;margin:0 0 5px;color:#000;font-size:11px;font-weight:800;text-transform:uppercase}.translated-text{color:#000;font-size:18px;font-weight:750;line-height:1.5}.phrase-mark{padding:1px 4px;border-radius:6px;background:#fff2a8;color:#000;box-shadow:inset 0 -2px #ffb70359}.plain-text{color:#000;line-height:1.55}.phrase-block,.unassigned-notes,.note-list{display:grid;gap:9px}.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-title-row h2{min-width:0}.page-stack .clear-records-button{min-height:36px;padding:0 11px;border-color:#c9d1db;background:#fff;font-size:13px;white-space:nowrap}.note-item{display:grid;gap:7px;padding:11px;border:1px solid #e2e6eb;border-radius:8px;background:#fff}.page-stack .note-choice{display:flex;grid-template-columns:none;align-items:center;gap:9px;font-weight:750}.page-stack .note-choice input[type=checkbox]{width:18px;min-height:18px;margin:0;accent-color:#000000}.note-item strong{color:#000}.note-label{display:inline-block;margin-right:6px;color:#000;font-size:11px;font-weight:800;text-transform:uppercase}.note-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.note-heading span{padding:3px 8px;border-radius:999px;background:#edf7f5;color:#000;font-size:12px;font-weight:750}.shadowing-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.shadowing-title-row h2{margin:0;min-width:0;color:#000;font-size:21px;line-height:1.25}.page-stack .speaker-button{width:42px;min-width:42px;min-height:42px;padding:0;display:inline-grid;place-items:center;border-radius:999px}.speaker-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.read-aloud-panel,.practice-panel,.feedback-panel{display:grid;gap:12px;padding:14px;border:1px solid #dfe3e8;border-radius:8px;background:#fbfcfd}.action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sentence-list{display:grid;gap:8px}.page-stack .sentence-row{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px;min-height:0;padding:12px;text-align:left;border-color:#000;background:#fff}.sentence-row span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#eef1f4;color:#000;font-size:12px;font-weight:800}.sentence-row strong{color:#000;font-size:16px;line-height:1.55}.sentence-row[aria-current=true]{border-color:#000;background:#f0fdfa}.sentence-row[aria-current=true] span{background:#0f766e;color:#000}.list-page{display:grid;gap:10px}.list-item{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:stretch;width:100%}.list-item-main{display:grid;gap:4px;text-align:left}.page-stack .manage-item-button,.manage-item-button{min-height:42px;padding:0;text-align:center}.list-item-actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.list-item-actions button{min-height:38px;padding:0 8px;border:1px solid #c9d1db;border-radius:8px;background:#fff;color:#000;font-weight:750}.bottom-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid #dfe3e8;background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav button{min-height:42px;border:1px solid transparent;border-radius:8px;background:transparent;color:#000;font-weight:800}.bottom-nav button.active{border-color:#000;background:#eef8df;color:#000;box-shadow:inset 0 0 0 1px #0000000a}@media(min-width:720px){.surface{padding:24px}.paragraph-pair{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.read-aloud-panel{grid-template-columns:repeat(4,minmax(0,1fr))}.read-aloud-panel>button,.read-aloud-panel>p,.read-aloud-panel>audio,.read-aloud-panel>.action-row{grid-column:1 / -1}.action-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
