@font-face{font-family:Pretendard;src:url("/fonts/PretendardVariable.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#202536;background:#f9fafb;--border:#dfe2e8;--muted:#5e6576;--ink:#202536;--brand:#3446a4;--header:54px}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit;color:inherit}
button,select,a[href]{cursor:pointer}
button,select,input{border:1px solid var(--border);border-radius:6px;background:white}
a{color:inherit;text-decoration:none}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #8297fc;outline-offset:2px}
.topbar{display:flex;align-items:center;gap:16px;height:var(--header);padding:0 24px;border-bottom:1px solid var(--border);background:white}
.brand{display:inline-flex;align-items:center}
.brand img{width:96px;height:25px;object-fit:contain}
.bar-line{width:1px;background:var(--border);height:17px}
.product-name{font-size:14px;font-weight:650}
.mobile-menu{display:none;margin-left:auto}
.layout{display:grid;grid-template-columns:266px minmax(0,1fr);height:calc(100dvh - var(--header));min-height:300px}
aside{display:flex;min-height:0;min-width:0;flex-direction:column;border-right:1px solid var(--border);background:#fafbfe}
.catalog-controls{display:grid;gap:8px;padding:20px 16px 14px;border-bottom:1px solid var(--border)}
.catalog-controls label,.context{color:var(--muted);font-size:12px;font-weight:600}
.catalog-controls select,.catalog-controls input{width:100%;min-width:0;height:38px;padding:0 9px;font-size:13px}
.catalog-controls input::placeholder{color:#6f7685}
.cases{position:relative;overflow-y:auto;min-height:0;padding:8px}
.cases a{display:grid;grid-template-columns:38px 1fr;gap:5px;align-items:baseline;padding:10px 8px;border-radius:6px;font-size:13px;line-height:1.48;word-break:keep-all;overflow-wrap:anywhere}
.cases a:hover{background:#eaeef9}
.cases a[aria-current=page]{background:#e4e9ff;color:#263c9b;font-weight:650}
.number{font-size:11px;font-variant-numeric:tabular-nums;color:#636c81}
.cases a[aria-current=page] .number{color:#344baf}
.empty{font-size:13px;color:var(--muted);padding:0 8px}
main{min-width:0;min-height:0;display:flex;flex-direction:column}
.case-head{padding:15px 23px 12px;background:white;border-bottom:1px solid var(--border)}
.context{display:flex;align-items:center;gap:8px;line-height:1.45}
.dot{width:3px;height:3px;background:#979cab;border-radius:50%}
.title-row,.tools,.arrows,.frame-actions,.view-switch{display:flex;align-items:center}
.title-row{justify-content:space-between;gap:14px}
h1{font-size:clamp(18px,1.55vw,24px);line-height:1.35;margin:4px 0;color:var(--ink);letter-spacing:-.035em}
.arrows,.frame-actions{gap:5px}
.arrows a{display:grid;place-items:center;width:32px;height:30px;border:1px solid var(--border);border-radius:6px;color:#333c59}
.arrows a[aria-disabled]{opacity:.35}
#description{font-size:14px;line-height:1.5;color:#4a5264;margin:0 0 10px;word-break:keep-all;overflow-wrap:anywhere}
.tools{min-height:30px;gap:12px;flex-wrap:wrap}
.tools button,.tools select,.mobile-menu{min-height:30px;font-size:12px;padding:4px 9px;font-weight:550}
#variant-wrap{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
#variant-wrap[hidden]{display:none}
#variant{max-width:330px}
.view-switch{gap:2px;padding:2px;background:#f1f3f7;border-radius:6px}
.view-switch button{border:0;background:transparent;color:#5e6574;min-height:26px}
.view-switch button[aria-pressed=true]{color:#293b91;background:white;box-shadow:0 1px 3px #07183d26}
.frame-actions{margin-left:auto}
.tools button:hover,.mobile-menu:hover{background:#edf1fa}
.stage{display:flex;justify-content:center;min-height:0;flex:1;background:#e9ecf0;padding:8px 8px 0}
.stage iframe{display:block;border:1px solid #dce0e7;border-bottom:0;background:white;width:100%;height:100%;min-height:0}
.stage.phone iframe{max-width:390px}
.expanded .layout{grid-template-columns:1fr}
.expanded aside{display:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:850px){
  :root{--header:46px}
  .topbar{padding:0 14px;gap:12px}
  .brand img{width:81px;height:22px}
  .layout{grid-template-columns:minmax(0,1fr)}
  .mobile-menu{display:block}
  aside,.expanded aside{display:none}
  .menu-open aside{position:absolute;inset:var(--header) 0 0;z-index:5;display:flex;border:0}
  .catalog-controls{padding:12px 14px}
  .cases{padding:7px 11px}
  .cases a{font-size:14px;padding:10px}
  .case-head{padding:10px 12px}
  h1{font-size:18px}
  .tools{gap:6px}
  #description{font-size:13px;margin:3px 0 7px}
  .context{font-size:11px}
  .view-switch,#expand{display:none}
  #variant-wrap{min-width:0;max-width:calc(100% - 71px)}
  #variant{min-width:0;max-width:100%}
  .stage{padding:0}.stage iframe{border:0}
}
@media(max-height:540px) and (min-width:851px){
  :root{--header:38px}
  .case-head{padding:7px 18px}
  #description{margin-bottom:4px}
}
.screen-switch{display:flex;gap:2px;align-items:center;padding:2px;background:#eff1f7;border-radius:6px}
.screen-switch button{border:0;min-height:26px;background:transparent;color:#505a74}
.screen-switch button[aria-pressed=true]{color:#fff;background:#3446a4}
.tools button:disabled{opacity:.45;cursor:default}
.stage [hidden]{display:none}
.stage figure{width:100%;height:100%;overflow:auto;margin:0;background:white}
.stage.phone figure{max-width:390px}
.stage figcaption{position:sticky;top:0;display:flex;justify-content:space-between;gap:8px;padding:7px 12px;background:#f4f6fd;color:#404d74;font-size:12px;border-bottom:1px solid #dee3f1}
.stage figcaption a{text-decoration:underline;text-underline-offset:2px}
.stage figure img{display:block;width:100%;height:auto}
@media(max-width:850px){.tools{column-gap:5px}.tools #variant-wrap{max-width:100%;order:1}.tools .frame-actions{margin-left:auto}}
