.we,.we-panel { color:var(--text); font-size:calc(13px * var(--ui-scale,1)); line-height:1.6; min-width:0; }
.we :is(h1,h2,h3,p,dl,dd),.we-panel :is(h3,h4,p,dl,dd) { margin:0; }
.we button,.we-panel button,.we-panel summary { touch-action:manipulation; }
.we [hidden],.we-panel [hidden] { display:none !important; }
.we .icon,.we-panel .icon { width:15px; height:15px; flex:none; }
.we .btn,.we-panel .btn { min-height:42px; font-size:calc(12px * var(--ui-scale,1)); gap:4px; padding:6px 9px; white-space:nowrap; }
.we :is(button,select):focus-visible,.we-panel :is(button,summary,select):focus-visible { outline:2px solid var(--dc-blue); outline-offset:2px; }
#mobile-shell[data-screen=writer] { --writer-inset:16px; }
#mobile-shell[data-screen=writer] #app-content { padding:5px 18px 19px; }
.we-page-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  margin:10px 0 13px;
}
.we h1 { font-size:calc(27px * var(--ui-scale,1)); font-weight:800; line-height:1.27; letter-spacing:-.045em; overflow-wrap:anywhere; word-break:keep-all; }
.we-page-head p,.we-work-card p,.we-empty p { color:var(--muted); }
.we-page-head p { margin-top:3px; font-size:12px; }
.we-list-top,.we-episode-head,.we-work-foot { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.we-list-top { color:var(--muted); margin-bottom:7px; }
.we-list-top strong { font-size:12px; }
.we-select { min-height:36px; border:1px solid var(--line); border-radius:8px; padding:3px 5px; color:var(--text); background:var(--surface); font-size:12px; }
.we-library-cards { display:grid; gap:9px; }
.we-work-card { width:100%; padding:12px; border-radius:15px; text-align:left; color:var(--text); }
.we-work-card > p { margin:8px 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }
.we-work-name { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px; }
.we-work-name > div { min-width:0; }
.we-work-name strong { font-size:calc(16px * var(--ui-scale,1)); letter-spacing:-.03em; line-height:1.35; overflow-wrap:anywhere; word-break:keep-all; }
.we-work-name > .icon { align-self:center; color:var(--dc-blue); }
.we-work-mark { display:grid; place-items:center; width:34px; height:37px; border-radius:10px; background:var(--dc-blue-bg); color:var(--dc-blue); font-size:18px; font-weight:800; }
.we-work-highlight { background:linear-gradient(145deg,#10192d,#1b2941); color:#f5f8ff; border-color:#20314c; }
.we-work-highlight p,.we-work-highlight .we-work-foot,.we-work-highlight .we-work-name>.icon { color:#ccd7e8; }
.we-work-highlight .we-work-mark { color:#ffe088; background:#253650; }
.we-work-tags { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin:4px 0 0; }
.we-work-tags span { display:inline-block; border-radius:999px; background:var(--dc-blue-bg); color:var(--dc-blue); font-size:10.5px; padding:2px 6px; line-height:1.35; overflow-wrap:anywhere; }
.we-work-tags small { font-size:10px; color:var(--muted); }
.we-work-highlight .we-work-tags span { background:#2c3b53; color:#dce7f9; }
.we-work-highlight .we-work-tags small { color:#cbd6e7; }
.we-work-foot { border-top:1px dashed var(--line); padding-top:6px; color:var(--muted); font-size:11px; }
.we-work-highlight .we-work-foot { border-color:#4a5b75; }
.we-back,.we-text-btn { display:inline-flex; align-items:center; border:0; padding:3px 0; gap:4px; min-height:34px; background:none; color:var(--dc-blue); font-weight:700; font-size:12px; white-space:nowrap; }
.we-text-btn:disabled { color:var(--muted); opacity:.55; }
.we-work-hero { padding:4px 0 10px; }
.we-work-hero h1 { margin:5px 0 10px; }
.we-work-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.we-work-controls .btn { width:100%; padding-inline:3px; min-width:0; }
.we-episode-head { margin:10px 0 7px; }
.we-episode-head h2 { display:flex; align-items:baseline; gap:5px; font-size:calc(16px * var(--ui-scale,1)); }
.we-episode-head h2 span { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.we-episodes { background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.we-episodes > .we-empty { box-shadow:none; border:0; margin:0; }
.we-episode { display:flex; align-items:center; padding:0 10px; }
.we-episode + .we-episode { border-top:1px solid var(--line); }
.we-episode-open { display:grid; flex:1; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; min-height:64px; padding:8px 3px; border:0; border-radius:8px; background:transparent; color:var(--text); text-align:left; }
.we-episode-open:focus-visible { background:var(--surface-2); }
@media (hover:hover) { .we-episode-open:hover { background:var(--surface-2); } }
.we-episode-index { display:grid; place-items:center; min-width:38px; min-height:34px; padding:2px 5px; border-radius:8px; color:var(--dc-blue); background:var(--dc-blue-bg); font-size:12px; font-weight:750; font-variant-numeric:tabular-nums; }
.we-episode-copy { min-width:0; }
.we-episode-copy strong { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:calc(14px * var(--ui-scale,1)); line-height:1.4; word-break:keep-all; overflow-wrap:anywhere; }
.we-episode-copy small { display:flex; flex-wrap:wrap; column-gap:9px; margin-top:3px; color:var(--muted); font-size:calc(11px * var(--ui-scale,1)); line-height:1.4; font-variant-numeric:tabular-nums; }
.we-episode-open > .icon { color:var(--muted); width:13px; }
.we-episode > [data-action=we-delete] { display:none; }
.we-empty { padding:13px; }
.we-work .btn[data-action=we-trash] { margin-top:9px; }

#mobile-shell[data-writer-view=compose] #app-content { display:flex; min-height:0; padding:0; overflow:hidden; }
.we-composer { display:flex; flex-direction:column; flex:1; min-height:0; }
.we-composer-context { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto auto; align-items:center; gap:2px; padding:2px 6px; border-bottom:1px solid var(--line); }
.we-composer-context .we-back { justify-content:center; min-width:40px; min-height:40px; padding-inline:4px; }
.we-composer-context .we-back span { display:none; }
.we-context-work { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; width:100%; font-size:11px; color:var(--muted); background:var(--surface); border:0; text-align:left; }
.we-composer-context > .icon-btn { width:40px; height:40px; min-width:0; min-height:0; border-radius:8px; }
.we-utility-line > .icon-btn { width:31px; height:32px; min-width:0; min-height:0; border-radius:6px; }
.we-composer-context .icon,.we-utility-line .icon { width:14px; height:14px; }
.we-toolbar-shell {
  container:writer-toolbar / inline-size;
  display:grid;
  grid-template-columns:minmax(0, 730px);
  flex:none;
  padding:4px 7px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.we-top-tools { grid-area:1/1; display:grid; grid-template-columns:minmax(0,1fr); gap:4px; min-width:0; }
.we-highlight-tools { display:flex; flex:none; align-items:center; gap:1px; }
.we-highlight-tools .icon-btn { min-width:0; min-height:32px; width:24px; height:32px; border-radius:6px; }
.we-highlight-tools .icon-btn:last-child { width:19px; }
.we-highlight-tools .icon-btn[aria-pressed=true] { background:var(--dc-blue-bg); color:var(--dc-blue); border-color:var(--dc-blue); }
.we-format-line,.we-utility-line { display:flex; align-items:center; gap:4px; min-width:0; }
.we-format-line { justify-content:space-between; padding:2px; border:1px solid var(--line); border-radius:9px; }
.we-format-toggles,.we-format-align,.we-font-quick { display:flex; align-items:center; gap:1px; min-width:0; }
.we-format-toggles { border-inline:1px solid var(--line); padding:0 2px; }
.we-flat { display:inline-flex; align-items:center; justify-content:center; border:1px solid transparent; background:transparent; border-radius:5px; color:var(--text); padding:3px 4px; min-height:31px; min-width:28px; white-space:nowrap; font-size:12px; }
.we-flat[aria-pressed=true],.we-utility-line .icon-btn[aria-pressed=true] { color:var(--dc-blue); border-color:var(--dc-blue); background:var(--dc-blue-bg); }
.we-font-picker { justify-content:space-between; gap:4px; flex:1; min-width:0; }
.we-font-picker span { overflow:hidden; text-overflow:ellipsis; }
.we-font-picker .icon { width:12px; height:12px; flex:none; }
.we-format-align svg { width:16px; height:16px; stroke:currentColor; stroke-width:1.7; fill:none; }
.we-color-button { flex-direction:column; font-weight:750; gap:1px; line-height:1.05; }
.we-color-button i { width:11px; height:3px; border-radius:2px; background:var(--ink-color,var(--text)); }
.we-font-quick { flex:none; gap:2px; color:var(--muted); }
.we-font-quick select { min-height:30px; min-width:46px; padding:0 3px; border:1px solid var(--line); border-radius:6px; color:var(--text); background:var(--surface-2); font-size:16px; font-variant-numeric:tabular-nums; }
.we-font-quick small { font-size:9px; }
.we-tools-toggle { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-height:40px; padding:3px 6px; border:1px solid transparent; border-radius:8px; color:var(--muted); background:transparent; font-size:12px; font-weight:700; }
.we-tools-toggle[aria-expanded=true] { color:var(--dc-blue); background:var(--dc-blue-bg); }
.we-tools-toggle .icon { width:14px; height:14px; }
.we-tools-folded .we-toolbar-shell { display:none; }
.we-utility-line { justify-content:flex-start; gap:5px; }
.we-utility-line .we-highlight-tools { margin-inline-start:auto; }
.we-top-tools[hidden] { display:none; }
.we-tool-button { display:flex; justify-content:center; align-items:center; gap:3px; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:8px; min-height:40px; min-width:0; padding:3px; font-size:calc(11px * var(--ui-scale,1)); font-weight:700; white-space:nowrap; }
.we-tool-button:hover,.we-tool-button[aria-pressed=true] { background:var(--dc-blue-bg); border-color:var(--dc-blue); color:var(--dc-blue); }
.we-utility-line .we-tool-button { flex:none; min-height:32px; padding-inline:5px; border-radius:6px; font-size:11px; }
.we-utility-line .we-tool-button .icon { width:11px; }
.we-editor-workspace { min-height:0; min-width:0; flex:1; display:grid; grid-template-columns:minmax(0,1fr); }
.we-editor-workspace.we-split { grid-template-columns:minmax(0,1fr) minmax(0,.83fr); }
.we-page { min-width:0; min-height:0; display:flex; flex-direction:column; background:var(--surface); }
.we-manuscript {
  flex:1 1 auto;
  min-height:0;
  width:100%;
  padding:12px var(--writer-inset) 18px;
  background:var(--surface);
  color:var(--text);
  border:0;
  outline:none;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-family:'Pretendard Variable','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-weight:490;
  letter-spacing:-.015em;
  font-size:17px;
  line-height:1.9;
  caret-color:var(--dc-blue);
  -webkit-user-select:text;
  user-select:text;
}
.we-manuscript:empty:before { content:attr(data-placeholder); color:var(--muted); pointer-events:none; }
.we-manuscript[data-font=serif] { font-family:'Noto Serif KR', 'Batang','AppleMyungjo',serif; }
.we-manuscript[data-font=mono] { font-family:ui-monospace,'D2Coding',Consolas,monospace; }
.we-manuscript[data-margin=wide] { padding-inline:9px; }
.we-reference-pane { min-width:0; padding:10px; border-left:1px solid var(--line); overflow:auto; background:var(--surface-2); }
.we-reference-header { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:12px; }
.we-reference-pane .we-reference-text { margin-top:8px; }
.we-reference-text { white-space:pre-wrap; color:var(--text); line-height:1.85; word-break:keep-all; overflow-wrap:anywhere; }
.we-reference-choice { display:flex; justify-content:space-between; align-items:center; gap:6px; width:100%; min-height:42px; padding:6px 2px; border:0; border-bottom:1px solid var(--line); color:var(--text); background:transparent; text-align:left; }
.we-reference-choice strong { color:var(--dc-blue); }

.we-composer-footer { flex:none; background:var(--surface); border-top:1px solid var(--line); }
.we-status { display:flex; align-items:center; gap:6px; min-height:33px; padding:1px 10px; color:var(--muted); overflow:hidden; }
.we-status button { display:inline-flex; align-items:center; border:0; background:transparent; color:var(--dc-blue); min-height:30px; padding:2px 3px; font-size:11px; font-weight:700; white-space:nowrap; }
.we-status-count { display:flex; }
.we-status > small { white-space:nowrap; font-size:10px; overflow:hidden; text-overflow:ellipsis; }
.we-status .we-status-stat { margin-left:auto; }
.we-status #writer-count { border-radius:6px; background:var(--surface-2); padding-inline:6px; }
.we-dock { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:3px 7px 5px; }
.we-dock .we-tool-button { background:var(--surface-2); min-height:37px; }
.we-dock .we-tool-button .icon { color:var(--dc-blue); }
.we-focus-exit { display:none; }
#mobile-shell[data-writer-view=compose] #app-header { padding:4px 9px; }
#mobile-shell[data-writer-view=compose] #app-header .header-main .icon-btn { min-height:35px; height:35px; }
#mobile-shell[data-writer-view=compose] #bottom-nav { min-height:47px; padding-block:2px env(safe-area-inset-bottom,0px); }
#mobile-shell[data-writer-view=compose]:not(.keyboard-open):not(.writer-focus) #bottom-nav { display:grid; }
#mobile-shell[data-writer-view=compose] #bottom-nav .nav-item { min-height:43px; padding-block:2px; }
#mobile-shell[data-writer-view=compose].keyboard-open :is(#app-header,#bottom-nav) { display:none; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-manuscript { padding-top:8px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-dock .we-tool-button { min-height:33px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-status { min-height:28px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-status button { min-height:26px; }
#mobile-shell.writer-focus :is(#app-header,#bottom-nav,.we-composer-context,.we-toolbar-shell,.we-reference-pane,#writer-actions) { display:none; }
#mobile-shell.writer-focus .we-editor-workspace { grid-template-columns:minmax(0,1fr); }
#mobile-shell.writer-focus .we-manuscript { padding-top:13px; padding-bottom:18px; }
#mobile-shell.writer-focus .we-focus-exit { display:grid; place-items:center; position:absolute; z-index:2; right:9px; top:max(5px,env(safe-area-inset-top,0px)); width:31px; height:31px; padding:0; border:1px solid var(--line); border-radius:7px; color:var(--text); background:var(--surface); box-shadow:0 2px 8px #0001; }
.we-focus-exit .icon { width:15px; height:15px; }
[data-ink=ink] { --ink-color:#171a22; }
[data-ink=navy] { --ink-color:#244a83; }
[data-ink=sepia] { --ink-color:#765336; }
[data-ink=gray] { --ink-color:#586374; }
[data-theme=dark] [data-ink=ink] { --ink-color:#f5f7ff; }
[data-theme=dark] [data-ink=navy] { --ink-color:#b5cdfa; }
[data-theme=dark] [data-ink=sepia] { --ink-color:#e4c49b; }
[data-theme=dark] [data-ink=gray] { --ink-color:#bac6d8; }
.we-manuscript[data-ink],.we-reference-text[data-ink] { color:var(--ink-color,var(--text)); }
::highlight(writer-phrase) { color:#543da2; text-decoration:underline 2px #8a6dc4; background:#efe7ff; }
.we-choice { display:flex; align-items:center; gap:7px; width:100%; min-height:41px; text-align:left; border:1px solid var(--line); border-radius:8px; color:var(--text); background:var(--surface); padding:6px 9px; }
.we-choice[aria-pressed=true] { color:var(--dc-blue); background:var(--dc-blue-bg); border-color:var(--dc-blue); }
.we-count-choices button { justify-content:space-between; }
.we-color-dot { background:var(--ink-color,var(--text)); width:16px; height:16px; border-radius:50%; }
.we-font-group { display:grid; gap:3px; }
.we-font-group h3 { margin-top:4px; }

.we-panel { display:grid; gap:9px; }
.we-panel .field { margin:0; }
.we-panel .input { font-size:16px; }
.we-panel h3 { font-size:15px; letter-spacing:-.015em; }
.we-panel h4 { font-size:12px; }
.we-panel-card,.we-panel-work {
  min-width:0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}
.we-panel-work,.we-dictionary-entry header,.we-tool-control,.we-dictionary-nav { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.we-panel-work > div { min-width:0; }
.we-panel-work > div small { display:block; }
.we-panel-muted,.we-panel small { color:var(--muted); font-size:11px; }
.we-panel-tabs,.we-word-row > div { display:flex; flex-wrap:wrap; gap:4px; }
.we-pill { display:inline-flex; align-items:center; justify-content:center; gap:3px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--muted); min-height:33px; padding:3px 6px; font-size:12px; font-weight:650; }
.we-pill[aria-pressed=true],.we-pill[aria-checked=true] { border-color:var(--dc-blue); background:var(--dc-blue-bg); color:var(--dc-blue); }
.we-tool-control { justify-content:flex-start; }
.we-dictionary-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; }
.we-dictionary-form input { width:100%; min-width:0; }
.we-dictionary-entry h3 { font-size:20px; }
.we-dictionary-entry header { margin-bottom:4px; }
.we-dictionary-entry blockquote { margin:4px 0 0; border-inline-start:2px solid var(--line); padding-inline-start:8px; color:var(--muted); }
.we-word-row { padding:7px 0; border-top:1px solid var(--line); margin-top:6px; }
.we-word-row h4 { padding-bottom:3px; color:var(--dc-blue); }
.we-opposite h4 { color:var(--dc-red); }
.we-two-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.we-two-metrics > div { min-width:0; background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:6px 8px; }
.we-two-metrics dt { color:var(--muted); font-size:11px; }
.we-two-metrics dd { color:var(--text); font-size:15px; font-weight:790; }
.we-panel .we-habit-scope { display:flex; align-items:center; gap:6px; }
.we-habit-scope .input { flex:1; min-width:0; }
.we-donut { width:112px; height:112px; border-radius:50%; display:grid; place-items:center; margin:4px auto; background:var(--donut); }
.we-donut span { width:78px; height:78px; display:grid; place-items:center; border-radius:50%; background:var(--surface); font-size:17px; font-weight:800; }
.we-habit-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.we-habit-categories .we-pill { justify-content:space-between; }
.we-habit-bars,.we-check-list { margin:6px 0 0; padding:0; list-style:none; }
.we-habit-bars li { display:flex; align-items:center; justify-content:space-between; gap:6px; border-top:1px solid var(--line); padding:4px 0; }
.we-habit-bars li > span { flex:1 1 auto; overflow-wrap:anywhere; }
.we-habit-bars li i { flex:0 1 35%; background:var(--line); height:4px; border-radius:9px; }
.we-habit-bars li i:before { display:block; content:''; width:var(--fill); height:4px; border-radius:9px; background:var(--dc-blue); }
.we-habit-bars li strong { white-space:nowrap; }
.we-check-list li + li { padding-top:5px; border-top:1px solid var(--line); }
.we-plot-card,.we-writer-memo { border:1px solid var(--line); border-radius:9px; background:var(--surface); padding:7px 9px; }
.we-plot-card summary { display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:700; min-height:31px; gap:4px; }
.we-plot-card summary::-webkit-details-marker { display:none; }
.we-plot-card summary > span { flex:1; }
.we-plot-card[open] summary .icon { transform:rotate(90deg); }
.we-plot-card div p + p { margin-top:5px; }
.we-writer-memo { border-top:2px solid var(--dc-gold); }
.we-writer-memo > span { display:inline-flex; background:var(--dc-gold-bg); color:var(--dc-gold); border-radius:5px; padding:2px 5px; font-size:10px; font-weight:700; }
.we-writer-memo .we-memo-suggestion { padding:7px; background:var(--dc-memo-surface); border:1px solid var(--dc-memo-line); border-radius:6px; margin:5px 0; }
.we-writer-memo details { border-top:1px solid var(--line); padding:5px 0; }
.we-writer-memo summary { color:var(--dc-blue); cursor:pointer; font-size:12px; font-weight:650; }
.we-writer-memo :is(p,ol) { color:var(--muted); margin:3px 0 0; }
.we-writer-memo ol { padding-left:14px; }
.we-timer-value { font-size:32px; font-weight:800; font-variant-numeric:tabular-nums; }
.we-menu { grid-template-columns:repeat(2,minmax(0,1fr)); }

@media(max-width:350px) {
  #mobile-shell[data-screen=writer] { --writer-inset:11px; }
  #mobile-shell[data-screen=writer] #app-content { padding-inline:11px; }
  #mobile-shell[data-writer-view=compose] #app-content { padding:0; }
  .we-work-controls .btn { font-size:11px; }
  .we-top-tools .we-tool-button .icon,.we-dock .we-tool-button .icon { display:none; }
}
@media(min-width:640px) {
  .we-library-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .we-episode > [data-action=we-delete] { display:inline-flex; color:var(--muted); margin-inline-start:8px; }
  .we-composer-context .we-back span { display:inline; }
  .we-composer-context { gap:6px; padding-inline:12px; }
  #mobile-shell[data-screen=writer] { --writer-inset:22px; }
}

.workspace-library-label { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:750; color:var(--library-accent,var(--dc-blue)); margin:0 0 3px; }
.workspace-library-label .icon,.we-work-mark .icon { width:17px; height:17px; }
.workspace-library .we-work-mark { background:var(--library-tint,var(--dc-blue-bg)); color:var(--library-accent,var(--dc-blue)); }
.workspace-library-plot { --library-tint:#e8f5f0; --library-accent:#136b57; }
.workspace-library-writer { --library-tint:var(--dc-gold-bg); --library-accent:var(--dc-gold); }
.workspace-library .we-work-highlight .we-work-mark { color:#ffe088; background:#253650; }
[data-theme=dark] .workspace-library-plot { --library-tint:#1e3c36; --library-accent:#94d5c1; }
.workspace-library .dc-library-tools { margin:0; border:0; padding:0; }
.workspace-library .dc-library-tools .btn { min-height:34px; padding-inline:5px; }

.more-evaluation h3 { margin:0 0 12px; }
.more-evaluation-cards { display:grid; gap:7px; }
.more-evaluation-mode { display:grid; align-items:center; grid-template-columns:76px 1fr; gap:2px 10px; background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:7px; text-align:left; }
.more-evaluation-mode span { grid-row:span 2; min-height:52px; display:grid; place-content:center; text-align:center; color:var(--muted); background:var(--surface-2); border-radius:7px; }
.more-evaluation-mode b { font-size:21px; font-variant-numeric:tabular-nums; line-height:1.2; }
.more-evaluation-mode strong { align-self:end; }
.more-evaluation-mode small { color:var(--muted); font-size:10px; line-height:1.4; }
.more-evaluation-mode > small { align-self:start; }
.more-evaluation-mode[aria-pressed=true] { border-color:var(--dc-blue); background:var(--dc-blue-bg); color:var(--dc-blue); }
.more-evaluation-mode[aria-pressed=true] b { color:var(--dc-blue); }

.we-habit-thresholds { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.we-timer-sound { display:flex; align-items:center; gap:7px; }
#we-timer-progress { width:100%; accent-color:var(--dc-blue); height:7px; }
#mobile-shell[data-writer-view=compose] #app-header { min-height:48px; }
#mobile-shell[data-writer-view=compose] #app-header .header-main .studio-brand-icon { width:30px; height:30px; }
#mobile-shell[data-writer-view=compose] .we-top-tools { padding-block:3px; gap:3px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-format-line { padding-block:1px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-format-line .we-flat { min-height:28px; }
#mobile-shell[data-writer-view=compose].keyboard-open .we-utility-line :is(.we-tool-button,.icon-btn) { min-height:29px; height:29px; }


.wh-settings { display:grid; gap:9px; }
.wh-toolbar,.wh-rule,.wh-rule label,.wh-exclude,.wh-dict-row,.wh-dict-row label { display:flex; align-items:center; gap:5px; }
.wh-toolbar { flex-wrap:wrap; }
.wh-button { min-height:34px; padding:3px 6px; border:1px solid var(--line); border-radius:6px; color:var(--text); background:var(--surface); font-size:12px; white-space:nowrap; }
.wh-button[aria-pressed=true] { color:var(--dc-blue); border-color:var(--dc-blue); background:var(--dc-blue-bg); }
.wh-settings > .wh-button { justify-self:start; }
.wh-group h3 { margin-bottom:3px; font-size:12px; }
.wh-rules { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:9px; }
.wh-rule { justify-content:space-between; min-height:36px; min-width:0; }
.wh-rule label,.wh-dict-row label { min-width:0; font-size:11px; }
.wh-rule label span { overflow-wrap:anywhere; }
.wh-rule label i { flex:none; font-style:normal; font-weight:800; }
.wh-settings input[type=checkbox] { flex:0 0 auto; width:15px; height:15px; accent-color:var(--dc-blue); }
.wh-settings input[type=color] { width:23px; height:26px; padding:2px; border:0; background:transparent; flex:none; }
.wh-settings details { border-top:1px solid var(--line); padding:4px 0; }
.wh-settings summary { cursor:pointer; font-size:12px; font-weight:750; padding:3px 0; }
.wh-criteria,.wh-dict-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin-top:5px; }
.wh-criteria .field,.wh-dict-form .input { margin:0; min-width:0; }
.wh-criteria .input,.wh-dict-form .input { font-size:16px; min-height:37px; }
.wh-exclude { margin:8px 0 2px; font-size:11px; }
.wh-dict-form .input { grid-column:1/-1; }
.wh-dict-form button { justify-self:start; }
.wh-dict-row { border-bottom:1px solid var(--line); padding:4px 0; margin-top:2px; }
.wh-dict-row label { margin-right:auto; overflow-wrap:anywhere; }
.wh-dict-row label small { display:block; color:var(--muted); }
@container writer-toolbar (max-width: 336px) {
  .we-utility-line { gap:3px; }
  .we-utility-line [data-action=we-anchor] { width:24px; }
  .we-utility-line .we-tool-button { padding-inline:4px; font-size:10px; }
  .we-highlight-tools .icon-btn { width:20px; }
  .we-highlight-tools .icon-btn:last-child { width:18px; }
  .we-format-line { gap:2px; }
  .we-format-line .we-flat { min-width:24px; padding-inline:2px; }
  .we-font-quick select { min-width:42px; }
  .we-font-quick small,.we-utility-line [data-action=we-timer] .icon { display:none; }
}

@container writer-toolbar (min-width: 600px) {
  .we-top-tools { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:7px; }
  .we-utility-line { gap:5px; }
  .we-utility-line .we-highlight-tools { margin-inline-start:3px; }
  .we-utility-line .we-tool-button { padding-inline:7px; }
}

.we-episode-head .btn { min-height:34px; padding-inline:8px; }
.we-manager-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px; font-size:12px; }
.we-manager-list { display:grid; gap:5px; }
.we-manager-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; align-items:center; min-height:42px; padding:4px 5px; border:1px solid var(--line); border-radius:8px; }
.we-manager-row>label { display:flex; align-items:center; gap:6px; min-height:33px; font-size:13px; overflow-wrap:anywhere; }
.we-manager-row>label input { accent-color:var(--dc-blue); flex:none; }
.we-manager-row>div { display:flex; align-items:center; gap:3px; }
.we-manager-row .icon-btn { min-width:29px; min-height:33px; padding:3px; }
.we-manager-row .icon-btn:disabled { opacity:.35; }
.we-manager-row .icon { width:14px; height:14px; }
.we-settings-tabs { position:sticky; top:0; z-index:1; background:var(--surface); padding:2px 0; }
.we-settings-tabs .we-tool-button { flex:1; }
.we-setting-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; min-height:44px; border-bottom:1px solid var(--line); }
.we-setting-row b,.we-setting-row small { display:block; }
.we-setting-row b { font-size:13px; }
.we-setting-row small { color:var(--muted); font-size:11px; }
.we-setting-row input { width:18px; height:18px; accent-color:var(--dc-blue); }
#we-find-count { align-self:center; padding:4px; color:var(--muted); }
.writer-export { --studio-panel:var(--surface); --studio-line:var(--line); --studio-text:var(--text); --studio-muted:var(--muted); }
.writer-export button { min-height:35px; border:1px solid var(--line); border-radius:8px; padding:5px 9px; background:var(--surface-2); color:var(--text); font-size:12px; }
.writer-export button.primary { background:var(--primary); color:var(--on-primary); }
.writer-export :is(input:not([type=radio]):not([type=checkbox]),select) { min-height:40px; font-size:16px; color:var(--text); background:var(--surface); }
@media(max-width:520px) {
  .writer-export { width:100%; max-height:var(--app-height,100dvh); height:var(--app-height,100dvh); border-radius:0; }
  .writer-export form { max-height:var(--app-height,100dvh); height:100%; }
}
