/*
 * The Folio window, rebuilt in HTML. Designed at the real window size (1512x949 points, full screen minus the menu
 * bar) and scaled as one unit by --k. Sizes and labels follow Sources/Folio; curves are FolioMotion springs sampled
 * into linear() (spring(duration, bounce), sampled over its duration).
 */
.app-frame { position: relative; width: 100%; aspect-ratio: 1512 / 949; }
.app {
  --k: 1;
  --ink: #1d1d1f;
  --ink2: #86868b;
  --ink3: rgba(0, 0, 0, .26);
  --fill: rgba(0, 0, 0, .07);
  --accent: #0088ff;
  --hair: rgba(0, 0, 0, .09);
  --ins: rgba(46, 160, 67, .22);
  --del: rgba(255, 80, 70, .18);

  --selection: .30s linear(0, .029, .1, .192, .293, .393, .488, .574, .651, .717, .773, .82, .859, .89, .916, .936, .952, .964, .974, .981, .987, .991, .994, .996, 1);
  --panel: .5s linear(0, .03, .102, .198, .305, .411, .513, .605, .686, .755, .814, .861, .9, .93, .954, .971, .984, .993, 1, 1.004, 1.006, 1.007, 1.008, 1.008, 1);
  --state: .28s linear(0, .029, .1, .194, .296, .398, .494, .582, .659, .726, .783, .83, .868, .9, .925, .944, .96, .971, .98, .987, .992, .995, .998, .999, 1);
  --hover: .25s linear(0, .03, .103, .202, .311, .421, .526, .621, .705, .776, .836, .884, .922, .952, .974, .99, 1.001, 1.008, 1.012, 1.015, 1.015, 1.015, 1.014, 1.012, 1);
  --letter: linear(0, .031, .113, .23, .366, .508, .647, .776, .888, .981, 1.054, 1.106, 1.141, 1.159, 1.163, 1.156, 1.142, 1.123, 1.1, 1.077, 1.054, 1.034, 1.016, 1.001, 1);
  --content: .16s ease-out;
  --feedback: .12s ease-out;

  position: absolute; left: 0; top: 0; width: 1512px; height: 949px;
  transform: scale(var(--k)); transform-origin: 0 0;
  overflow: hidden; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(14, 21, 51, .12), 0 1px 2px rgba(14, 21, 51, .08), 0 12px 32px rgba(30, 42, 110, .12), 0 40px 100px rgba(30, 42, 110, .18);
  font: 13px/1.3 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: -.01em; text-align: left; word-break: keep-all;
  -webkit-font-smoothing: antialiased; user-select: none; cursor: default;
}
.app * { box-sizing: border-box; }
.app svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app .solid-ic { fill: currentColor; stroke: none; }
.app.instant, .app.instant *, .app.instant *::before { transition: none !important; animation: none !important; }

/* Sidebar: the floating glass panel */
.sb {
  position: absolute; left: 8px; top: 6px; bottom: 8px; width: 274px; z-index: 3;
  border-radius: 20px; background: #f5f5f6;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 6px 22px rgba(0, 0, 0, .07);
  transition: transform var(--panel), opacity var(--panel);
}
.app[data-comparing="true"] .sb { transform: translateX(-300px); opacity: 0; }
.sb .lensbox { margin-top: 52px; padding: 14px 12px; font-size: 14px; }
.lensbox { position: relative; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.sec { margin: 0; padding: 0 10px 2px; font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 16px; }
/* The sidebar's 공고 title carries the order menu at its right end, in the same size. */
.order-row { display: flex; align-items: baseline; justify-content: space-between; }
.order { display: flex; align-items: center; gap: 3px; }
.app .order svg { width: 11px; height: 11px; stroke-width: 1.8; }
.sb .sec + .row, .sb .sec + .rows { margin-top: 0; }
.sb .sec.gap { padding-top: 20px; }
.row {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
  font-weight: 500; line-height: 17px; white-space: nowrap; transition: background var(--feedback);
}
.row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 11px; font-weight: 500; color: var(--ink2); font-variant-numeric: tabular-nums; }
.row img { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.row svg { width: 17px; height: 17px; }
/* A newly added application opens its row (`state`); the negative margin cancels the list gap while closed. */
.grow { display: grid; grid-template-rows: 0fr; margin-top: -6px; opacity: 0; transition: grid-template-rows var(--state), margin var(--state), opacity var(--state); }
.grow > div { overflow: hidden; min-height: 0; }
.grow.on { grid-template-rows: 1fr; margin-top: 0; opacity: 1; }
.add { display: flex; align-items: center; gap: 8px; padding: 10px 10px; color: var(--ink2); line-height: 17px; transition: color var(--feedback); }
.add svg { width: 14px; height: 14px; margin: 0 1px 0 2px; }
.trash { position: absolute; right: 10px; bottom: 10px; height: 30px; padding: 0 10px; display: grid; place-items: center; color: var(--ink2); }
.trash svg { width: 15px; height: 15px; }

/* The selection lens: clear glass that slides; the accent copy of the rows is cut to the same rect. */
.glass {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; pointer-events: none;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
  opacity: 0; transform: translate(var(--x), var(--y)) scale(.9);
  width: var(--w); height: var(--h);
  transition: transform var(--selection), width var(--selection), height var(--selection), opacity var(--selection);
}
.col .glass { background: rgba(0, 0, 0, .035); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .8); }
.lensbox.on > .glass { opacity: 1; transform: translate(var(--x), var(--y)); }
.lensbox > .rows { position: relative; z-index: 1; }
.lensbox > .lcopy {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; color: var(--accent); padding: inherit;
  clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round 10px); opacity: 0;
  transition: clip-path var(--selection), opacity var(--selection);
}
.lensbox.on > .lcopy { opacity: 1; }
.lcopy .meta, .lcopy .date, .lcopy .latest, .lcopy .host { color: var(--accent); opacity: .75; }
.lcopy .vbody .note { color: var(--accent); }

/* Main area: toolbar, version column, detail */
.tb { position: absolute; left: 0; right: 0; top: 0; height: 52px; z-index: 4; pointer-events: none; }
.tb-lead { position: absolute; top: 0; height: 52px; left: 0; display: flex; align-items: center; transform: translateX(var(--lead, 282px)); transition: transform var(--panel); }
.tb-toggle { width: 56px; display: grid; place-items: center; color: #6e6e73; }
.tb-toggle svg { width: 19px; height: 19px; }
.tb-title { display: flex; flex-direction: column; justify-content: center; max-width: 560px; transition: opacity var(--content); }
.tb-title b { font-size: 13px; font-weight: 700; line-height: 16px; }
.tb-title span { font-size: 11px; color: var(--ink2); line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app[data-kind="none"] .tb-lead { opacity: 0; }
.tb-trail { position: absolute; right: 14px; top: 8px; display: flex; gap: 10px; }
.cap {
  height: 36px; display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .08); font-weight: 500;
  animation: appCapIn var(--state) both;
}
@keyframes appCapIn { from { opacity: 0; } }
.cap[hidden], .cap [hidden], .picker[hidden] { display: none; }
.btn-in { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; white-space: nowrap; transition: color var(--hover); }
.btn-in svg { width: 15px; height: 15px; }
.btn-in.hov { color: var(--accent); }
.base { gap: 3px; }
.base svg { width: 10px; height: 10px; stroke-width: 2; }
/* ToolbarCapsuleLabel: no fill of its own. Switched on (비교 끄기) it turns red; with nothing to compare it is greyed out. */
.toggle { transition: color var(--content); }
.toggle.on, .toggle.on.hov { color: #ff3b30; }
.toggle.off, .toggle.off.hov { color: var(--ink3); }
.toggle .label { display: inline-grid; }
.toggle .label > * { grid-area: 1 / 1; text-align: center; }
/* SlidingPicker */
/* CompareModePicker: its own grey track and a solid accent lens, no glass behind it */
.picker { position: relative; display: flex; align-self: center; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .09); font-weight: 500; }
.picker .plens {
  position: absolute; top: 2px; left: 0; height: 28px; border-radius: 999px; background: var(--accent);
  transform: translateX(var(--px, 0)); width: var(--pw, 0);
  transition: transform var(--selection), width var(--selection);
}
.picker .btn-in { padding: 0 12px; }
.picker .btn-in.on { color: #fff; }

/* RisingLetters */
.rise { display: inline-flex; white-space: pre; }
.rise i { font-style: normal; display: inline-block; animation: appLetterIn .35s var(--letter) both; animation-delay: calc(var(--i) * .06s); }
.rise.out { animation: appFadeOut .1s ease-out forwards; }
.rise.settled i { animation: none; }
@keyframes appLetterIn { from { opacity: 0; transform: translateY(7px); filter: blur(4px); } }
@keyframes appFadeOut { to { opacity: 0; } }

/* Version column */
.col {
  position: absolute; top: 0; bottom: 0; left: 0; width: 300px; z-index: 1; background: #fff;
  border-right: 1px solid var(--hair);
  transform: translateX(var(--cx, 282px)); transition: transform var(--panel), opacity var(--panel);
}
.app[data-kind="none"] .col, .app[data-comparing="true"] .col { transform: translateX(calc(var(--cx, 282px) - 300px)); opacity: 0; }
.cview { position: absolute; inset: 52px 0 0; display: none; }
.app[data-kind="master"] .cview.master, .app[data-kind="app"] .cview.application { display: block; }
.col .rows { gap: 2px; padding: 8px; }
.col .sec { padding-top: 8px; }
.slot {
  display: flex; align-items: center; gap: 8px; margin: 2px 10px 4px; padding: 9px 10px; border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, .22); color: var(--ink2); line-height: 16px;
  transition: color var(--feedback), border-color var(--feedback), background var(--feedback);
}
.slot svg { width: 13px; height: 13px; }
.vrow { display: flex; align-items: flex-start; gap: 8px; padding: 0 10px; border-radius: 10px; }
.vsum { flex: 1; display: flex; align-items: baseline; gap: 8px; padding: 6px 0; min-width: 0; }
.vn { width: 32px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.vbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.note { color: var(--ink); line-height: 16px; }
.date { font-size: 10px; color: var(--ink2); line-height: 13px; }
.latest { font-size: 10px; color: var(--ink2); }
.more { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink3); flex: none; }
.more svg { width: 15px; height: 15px; stroke-width: 2.2; }
.lcopy .more, .lcopy .slot, .lcopy .ahead, .lcopy .older, .lcopy .dochead { visibility: hidden; }

/* Application column */
.ahead { padding: 8px; }
.aname { display: flex; align-items: center; gap: 12px; }
.aname img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.aname b { display: block; font-size: 17px; font-weight: 600; line-height: 22px; }
.aname span { display: block; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 17px; }
.aname > div { min-width: 0; }
.track { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: 14px; }
.steps-in { position: relative; display: flex; align-items: flex-start; }
.disc { position: absolute; left: 12px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); transition: transform var(--state); }
.app [data-status="submitted"] .disc { transform: translateX(128px); }
.stp { position: relative; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stp .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .06); color: var(--ink2); transition: color var(--state), background var(--state); }
.stp .ic svg { width: 14px; height: 14px; stroke-width: 2; }
.stp b { font-size: 10px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: color var(--state); }
.stp small { font-size: 10px; color: var(--ink2); opacity: 0; transition: opacity var(--state); }
.line { width: 72px; height: 2px; margin-top: 15px; border-radius: 1px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--state); }
[data-status="preparing"] .s0 .ic, [data-status="submitted"] .s1 .ic { background: transparent; color: #fff; }
[data-status="preparing"] .s0 b, [data-status="submitted"] .s1 b { color: var(--ink); }
[data-status="submitted"] .s0 .ic { color: var(--accent); }
[data-status="submitted"] .line i { transform: none; }
[data-status="submitted"] .s1 small { opacity: 1; }
.acts { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.solid {
  display: inline-grid; height: 26px; padding: 0 12px; border-radius: 8px; border: 0; align-items: center;
  font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; background: rgba(0, 0, 0, .08); color: var(--ink);
  transition: background var(--state), color var(--state);
}
.solid[hidden] { display: none; }
/* Each is at least as wide as 제출 완료로 표시, so the pair are one width. */
.solid > * { grid-area: 1 / 1; font-weight: inherit; }
.solid > b { visibility: hidden; }
[data-status="preparing"] .solid.main { background: var(--accent); color: #fff; }
.jd svg { width: 15px; height: 15px; }
.host { font-size: 10px; color: var(--ink2); font-weight: 400; }
.jd { gap: 6px; padding: 6px 10px; line-height: 17px; font-weight: 400; }
.dochead { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 2px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.dochead span { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.dochead svg { width: 11px; height: 11px; stroke-width: 2; }
.older { display: flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 10px; font-weight: 500; color: var(--ink2); }
.older svg { width: 9px; height: 9px; stroke-width: 2.4; }
/* Submitting locks the application: its add slots fold away (`state`). */
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--state), opacity var(--state); }
.fold > * { overflow: hidden; min-height: 0; }
[data-status="submitted"] .fold { grid-template-rows: 0fr; opacity: 0; }

/* Detail */
.detail {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--dw, 1230px); background: #fff;
  transform: translateX(var(--dx, 282px)); transition: transform var(--panel), width var(--panel);
}
.dview { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--content), visibility 0s linear .16s; }
.dview.on { opacity: 1; visibility: visible; transition: opacity var(--content); }
.dview.empty { display: grid; place-content: center; justify-items: center; gap: 14px; color: #8e8e93; padding-top: 6px; }
.dview.empty svg { width: 44px; height: 36px; stroke-width: 1.4; color: #b0b0b5; }
.dview.empty p { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.backdrop { background: #ededef; }
/* As in the app: the toolbar is a white bar across the top; the gray behind the page starts under it. */
.dview.doc.backdrop { background: linear-gradient(#fff 0 52px, rgba(0, 0, 0, .07) 52px 53px, #ededef 53px); }
.paper { position: absolute; inset: 73px 24px -40px; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .08); }
.paper iframe {
  position: absolute; left: 0; top: 0; width: 900px; height: var(--fh, 2000px); border: 0; background: #fff;
  transform: scale(var(--s, 1)); transform-origin: 0 0; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity var(--content), visibility 0s linear .16s;
}
.paper iframe.on { opacity: 1; visibility: visible; transition: opacity var(--content); }
.posting { position: absolute; inset: 52px 0 0; overflow: hidden; border-top: 1px solid var(--hair); }
.posting img { width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto; transform: translateY(calc(var(--py, 0) * -1px)); transition: transform 1.1s cubic-bezier(.3, .1, .2, 1); }

/* Comparison: fades in over the document */
.cmp { background: #fff; }
.cmp .cpane { position: absolute; top: 52px; bottom: 28px; }
.cmp .split .cpane { width: 50%; }
.cmp .split .cpane + .cpane { left: 50%; border-left: 1px solid var(--hair); }
.cmp .inline .cpane { left: 0; right: 0; }
.cmp .split, .cmp .inline { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--content), visibility 0s linear .16s; }
.app[data-mode="split"] .cmp .split, .app[data-mode="inline"] .cmp .inline { opacity: 1; visibility: visible; transition: opacity var(--content); }
.phead { height: 28px; display: grid; place-items: center; font-size: 10px; color: var(--ink2); background: #f6f6f7; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.cpane .paper { inset: 46px 18px -40px; }
.inline .paper { inset: 18px 24px -40px; }
.cpane > .backdrop { position: absolute; inset: 28px 0 0; }
.inline .cpane > .backdrop { inset: 0; }
.bbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 10px; color: var(--ink2); background: #f6f6f7; border-top: 1px solid var(--hair);
}
.bbar .counts { display: flex; gap: 12px; color: var(--ink); }
.bbar .counts span { display: flex; gap: 4px; align-items: center; }
.sw { padding: 0 3px; border-radius: 3px; font-size: 10px; }
.sw.i { background: var(--ins); }
.sw.d { text-decoration: line-through; color: rgba(29, 29, 31, .55); }
.app[data-mode="split"] .sw.d { background: var(--del); color: var(--ink); text-decoration-color: #aaa; }
.prep {
  position: absolute; inset: 52px 0 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 12px; color: var(--ink2); opacity: 0; visibility: hidden; transition: opacity var(--content), visibility 0s linear .16s;
}
.prep.on { opacity: 1; visibility: visible; transition: opacity var(--content); }
.orb { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #bfe0ff, #3a9dff 55%, #0062d6); animation: orb 1.2s ease-in-out infinite alternate; }
@keyframes orb { to { transform: scale(.86); filter: hue-rotate(25deg); } }

/* The 공고 추가 sheet (Sheets.swift NewApplicationSheet): 520pt wide, a fixed 330pt grouped form, glass panel over a dimmed window */
.sheet-dim { position: absolute; inset: 0; z-index: 8; background: rgba(0, 0, 0, .16); opacity: 0; visibility: hidden; transition: opacity var(--content), visibility 0s linear .16s; }
.sheet {
  position: absolute; left: 50%; top: 58px; z-index: 9; width: 520px; margin-left: -260px;
  border-radius: 26px; background: rgba(246, 246, 248, .95); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
  opacity: 0; visibility: hidden; transform: translateY(-14px) scale(.97);
  transition: transform var(--panel), opacity var(--content), visibility 0s linear .5s;
}
.app.sheeted .sheet-dim, .app.sheeted .sheet { opacity: 1; visibility: visible; transition: opacity var(--content); }
.app.sheeted .sheet { transform: none; transition: transform var(--panel), opacity var(--content); }
.sh-title { margin: 0; padding-top: 16px; text-align: center; font-size: 13px; font-weight: 700; line-height: 16px; }
.sform { height: 330px; padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sform > * { animation: appCapIn var(--content) both; }
.fsec { border-radius: 12px; background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .05); }
.frow { display: flex; align-items: center; gap: 16px; min-height: 36px; padding: 0 12px; }
.frow + .frow { border-top: 1px solid var(--hair); }
.flabel { display: flex; align-items: center; gap: 6px; flex: none; }
.flabel svg { width: 14px; height: 14px; color: var(--ink2); }
.field { flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Like a text field that keeps the caret in view: a long URL shows its end */
.field.url { display: flex; justify-content: flex-end; text-overflow: clip; }
.url-val:empty::before { content: "https://"; color: var(--ink3); }
.caret { width: 1.5px; height: 16px; margin-left: 1px; flex: none; background: var(--accent); animation: appBlink 1s steps(1) infinite; }
@keyframes appBlink { 50% { opacity: 0; } }
.sheet:not([data-phase="input"]) .caret { display: none; }
.sheet[data-phase="loading"] .field { color: var(--ink3); }
.ffoot { margin: 0; padding: 0 12px; font-size: 11px; color: var(--ink2); line-height: 15px; }
.ffoot p { margin: 0 0 8px; }
.busy { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); border-top-color: rgba(0, 0, 0, .5); animation: appSpin .8s linear infinite; }
@keyframes appSpin { to { transform: rotate(1turn); } }
.pcard { display: flex; align-items: center; gap: 12px; margin: 6px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .04); }
.pcard img { width: 32px; height: 32px; border-radius: 7px; flex: none; }
.pcard b { display: block; font-size: 13px; font-weight: 700; line-height: 17px; }
.pcard span { display: block; font-size: 11px; color: var(--ink2); }
.sbar { display: flex; align-items: center; gap: 8px; padding: 0 16px 16px; }
.sh-lead { flex: 1; color: var(--accent); }
.sbtn { height: 28px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; font-weight: 500; background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); transition: background var(--feedback), color var(--feedback); }
/* .glassProminent with a white label, like the sheet's default button */
.sbtn.prime { color: #fff; background: linear-gradient(180deg, #2a9bff, var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 136, 255, .3); }
.sbtn.prime.off { color: var(--ink3); background: rgba(0, 0, 0, .05); box-shadow: none; }

/* The pointer, in window points */
.pointer { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; transform: translate(var(--mx, 1200px), var(--my, 700px)); transition: transform var(--move, .7s) cubic-bezier(.45, .05, .25, 1), opacity .3s; opacity: 0; }
.pointer.on { opacity: 1; }
.pointer svg { width: 26px; height: 26px; transform-origin: 3px 2px; transition: transform var(--feedback); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pointer.down svg { transform: scale(.82); }
.pointer i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 136, 255, .3); opacity: 0; }
.pointer.down i { animation: tap .45s ease-out; }
@keyframes tap { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.3); } }

@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before { transition: none !important; animation: none !important; }
  .pointer { display: none; }
}

/* Watch only: the scenes play by themselves, so nothing in the window takes a click, a hover or a scroll. */
.app { pointer-events: none; }

/* 자기소개서 row in an application's column: a label and its "…" menu */
.row.cl { gap: 6px; padding: 0 0 0 10px; font-weight: 400; }
.row.cl svg { width: 15px; height: 15px; }
.row.cl .more svg { width: 15px; height: 15px; }

/* CoverLetterDetail: a card per question, full width of the pane, the + to add one at the bottom */
.dview.cover { padding: 76px 32px 0; overflow: hidden; }
.cards { display: flex; flex-direction: column; gap: 16px; }
.clcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: #f4f4f5; }
.clq { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; line-height: 20px; }
.app .clq > svg { width: 14px; height: 14px; color: var(--ink2); align-self: center; }
.cln { color: var(--ink2); font-variant-numeric: tabular-nums; }
.clt { flex: 1; min-width: 0; }
.clq .more { align-self: center; height: 20px; }
.cla { padding: 0 5px; font-size: 14px; line-height: 22px; min-height: 80px; }
.cla .caret { display: inline-block; height: 17px; vertical-align: -3px; }
.clcard:not(.writing) .caret { visibility: hidden; }
.clc { font-size: 12px; color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.cl-add {
  position: absolute; left: 50%; bottom: 16px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .12);
}
.app .cl-add svg { width: 17px; height: 17px; stroke-width: 2.2; }

/* WorkspaceSwitch: 문서 and 캘린더 on a grey capsule at the sidebar's top right, one white plate under the chosen one.
   With the sidebar closed in the calendar it moves to the window's left; while comparing it goes with the sidebar. */
.wsw {
  position: absolute; left: 0; top: 12px; z-index: 5; display: flex; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .06);
  transform: translateX(194px); transition: transform var(--panel), opacity var(--panel);
}
.app[data-view="calendar"] .wsw { transform: translateX(20px); }
.app[data-comparing="true"] .wsw { transform: translateX(-106px); opacity: 0; }
.wsw .plate {
  position: absolute; left: 2px; top: 2px; width: 36px; height: 28px; border-radius: 999px; background: #fff;
  box-shadow: 0 .5px 1.5px rgba(0, 0, 0, .12); transition: transform var(--selection);
}
.app[data-view="calendar"] .wsw .plate { transform: translateX(36px); }
.wsw .seg { position: relative; width: 36px; height: 28px; display: grid; place-items: center; color: var(--ink2); transition: color var(--hover); }
.app .wsw svg { width: 15px; height: 15px; }
.app[data-view="docs"] .seg[data-at="sw:docs"], .app[data-view="calendar"] .seg[data-at="sw:calendar"] { color: var(--ink); }

/* The library steps aside for the calendar: the sidebar slides out, the toolbar's own parts fade. */
.app[data-view="calendar"] .sb { transform: translateX(-300px); opacity: 0; }
.tb-lead, .tb-trail { transition: transform var(--panel), opacity var(--content); }
.app[data-view="calendar"] .tb-lead, .app[data-view="calendar"] .tb-trail { opacity: 0; }

/* CalendarScreen: comes in a little small and low and settles (calendarScreen transition). */
.cal {
  position: absolute; inset: 0; z-index: 2; background: linear-gradient(#fff 0 52px, var(--hair) 52px 53px, #fff 53px);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: 50% 0;
  transition: opacity var(--panel), transform var(--panel), visibility 0s linear .5s;
}
.app[data-view="calendar"] .cal { opacity: 1; visibility: visible; transform: none; transition: opacity var(--panel), transform var(--panel); }
.cal-main { position: absolute; left: 0; top: 53px; bottom: 0; right: 300px; display: flex; flex-direction: column; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 12px; }
.cal-title { display: flex; align-items: center; gap: 8px; font-size: 26px; line-height: 32px; letter-spacing: -.02em; }
.cal-title .y { color: var(--ink2); }
.cal-title b { font-weight: 700; }
.app .cal-title svg { width: 16px; height: 16px; stroke-width: 2; color: var(--ink3); }
.cal-nav { display: flex; gap: 4px; }
.cbtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.app .cbtn svg { width: 14px; height: 14px; stroke-width: 1.9; }
.cal-always { display: flex; align-items: center; gap: 10px; padding: 0 24px 10px; }
.cal-always .lbl { font-size: 11px; font-weight: 600; color: var(--ink2); }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 12px 6px; font-size: 11px; font-weight: 500; color: var(--ink2); }
.cal-wd span { padding-left: 10px; }
/* Sunday in red, as on Korean calendars. */
.cal-wd span:first-child { color: rgba(255, 59, 48, .75); }
.cal-grid { flex: 1; min-height: 0; display: grid; grid-template-rows: 40px repeat(5, 1fr); padding: 0 12px 12px; }
.cal-mt { align-self: end; padding: 0 0 6px 9px; font-size: 15px; font-weight: 600; }
.cweek { display: grid; grid-template-columns: repeat(7, 1fr); border-top: .5px solid rgba(0, 0, 0, .12); }
.cweek:last-child { border-bottom: .5px solid rgba(0, 0, 0, .12); }
.cday { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 5px 4px 0; }
.cday + .cday { border-left: .5px solid rgba(0, 0, 0, .12); }
.dn { align-self: flex-start; min-width: 27px; height: 27px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; font-variant-numeric: tabular-nums; }
.cday.past .dn { color: var(--ink2); }
.cday.today .dn { background: var(--accent); color: #fff; font-weight: 600; }

/* DeadlineChip: the posting's icon and company, tinted by how soon it closes */
.chip {
  display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px; border-radius: 6px; min-width: 0;
  font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink); background: rgba(0, 136, 255, .12);
  transition: box-shadow var(--selection);
}
.chip img { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.chip .cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip .tm { font-size: 11px; opacity: .8; font-variant-numeric: tabular-nums; }
.chip.soon { color: #e07800; background: rgba(255, 141, 40, .14); }
.chip.urgent { color: #ff3b30; background: rgba(255, 59, 48, .14); }
.chip.done { color: var(--ink2); background: rgba(0, 0, 0, .05); }
.chip.done img { opacity: .6; }
.app .chip svg { width: 10px; height: 10px; stroke-width: 2.6; }
.chip.sel { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-always .chip { flex: none; }
.cal-add {
  position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
}
.app .cal-add svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* CalendarInspector: what closes next, or one posting, fading through each other */
.cpanel { position: absolute; right: 0; top: 53px; bottom: 0; width: 300px; border-left: 1px solid var(--hair); }
.cp { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--state), visibility 0s linear .28s; }
.cp.on { opacity: 1; visibility: visible; transition: opacity var(--state); }
.cp-up { padding: 0 8px; }
.cp-h { margin: 0; padding: 12px 10px 4px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.cp-day { margin: 0; padding: 4px 10px 2px; font-size: 11px; font-weight: 600; color: var(--ink2); }
.cp-day ~ .cp-day { padding-top: 14px; }
.row.up .dd { font-size: 11px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.row.up.soon .t, .row.up.soon .dd { color: #e07800; }
.row.up.urgent .t, .row.up.urgent .dd { color: #ff3b30; }
.cp-low { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; padding: 0 8px; border-top: 1px solid var(--hair); }
.cp.post { padding: 0 8px; }
.cp-in { display: flex; flex-direction: column; gap: 2px; animation: appCapIn var(--state) both; }
.cp-in .sec { padding-top: 10px; }
.cp-back { display: flex; align-items: center; gap: 2px; padding: 12px 10px 2px 4px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.app .cp-back svg { width: 14px; height: 14px; stroke-width: 2; }
.adl { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .04); font-size: 12px; font-weight: 500; }
.app .adl svg { width: 13px; height: 13px; color: var(--ink2); }
.adl em { margin-left: auto; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.adl.soon { color: #e07800; background: rgba(255, 141, 40, .1); }
.adl.urgent { color: #ff3b30; background: rgba(255, 59, 48, .08); }
.adl.soon svg, .adl.urgent svg { color: currentColor; }
