@font-face{font-family:'Pretendard Variable';font-weight:45 920;font-style:normal;font-display:swap;src:url('/assets/fonts/PretendardVariable.woff2') format('woff2-variations')}
:root{color-scheme:light;--bg:#f4f6f8;--panel:#fff;--surface:#f7f9fa;--border:#e2e8ec;--text:#20343e;--muted:#657782;--accent:#147c6d;--soft:#e8f4ef;--accent-border:#beded2;--danger:#ad493e;--amber:#916421}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font:16px/1.65 'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans CJK KR',sans-serif;color:var(--text);background:var(--bg);letter-spacing:-.25px}button,input,select,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .15s,border-color .15s}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible,.search-box input:focus-visible{outline:1px solid #753d26;outline-offset:2px}a{color:var(--accent)}.icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}.symbols{display:none}.skip{position:fixed;z-index:100;left:12px;top:-60px;background:#fff;padding:10px 20px}.skip:focus{top:8px}.topbar{height:68px;display:flex;align-items:center;gap:20px;background:var(--panel);border-bottom:1px solid var(--border);padding:0 26px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);font-size:24px;font-weight:800;letter-spacing:-.9px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:37px;height:37px;background:var(--accent);color:white;border-radius:11px;box-shadow:0 3px 8px #147c6d14}.brand small{display:block;font-size:11px;font-weight:650;letter-spacing:1.8px;color:var(--muted);margin-top:1px}.top-context{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:12.5px;color:var(--muted)}.status-dot{display:inline-block;width:6px;height:6px;background:#44977e;border-radius:50%;flex-shrink:0}.preview-link{text-decoration:none;color:var(--muted);font-size:12.5px;border-left:1px solid var(--border);padding-left:20px}.preview-link span{margin-left:7px}.avatar{width:30px;height:30px;border:1px solid var(--accent-border);background:var(--soft);border-radius:50%;display:grid;place-items:center;font-size:11.5px;color:var(--accent);font-weight:700}.app-body{height:calc(100dvh - 96px);display:flex;min-height:0}.sidebar{width:234px;min-width:234px;background:#f9fafb;border-right:1px solid var(--border);padding:23px 15px 15px;display:flex;flex-direction:column;overflow:auto}.workspace-name{font-size:12.5px;font-weight:750;display:flex;align-items:center;gap:8px;padding:0 5px 18px}.workspace-badge{margin-left:auto;border:1px solid var(--border);font-size:11px;padding:0 4px;border-radius:3px;color:var(--muted);font-weight:550;letter-spacing:.5px}.primary,.secondary,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-size:14px;font-weight:650;min-height:38px}.primary:hover{background:#0e695d}.secondary{border-color:var(--border);color:var(--text);background:#fff}.secondary:hover{background:var(--surface)}.danger-button{color:var(--danger);border-color:#e9cfc9;background:#fff}.danger-button:hover{background:#fff3f1}.compose-cta{width:100%;justify-content:flex-start;font-size:14px;box-shadow:0 3px 8px #147c6d12}.compose-cta span{margin-left:auto;opacity:.7}.nav-caption{font-size:11px;color:var(--muted);padding:27px 10px 9px;font-weight:650;letter-spacing:.8px}.nav-item{border:0;background:transparent;color:var(--muted);display:flex;align-items:center;gap:9px;text-align:left;width:100%;border-radius:7px;padding:10px;font-size:12.5px;margin-bottom:4px;min-width:0}.nav-item:hover{background:#edf1f2}.nav-item.active{color:var(--accent);background:var(--soft);font-weight:650}.nav-item .nav-copy{min-width:0;flex:1}.nav-item b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;font-weight:650}.nav-item small{display:block;font-size:11px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}.nav-empty{font-size:11.5px;color:var(--muted);padding:3px 10px 16px;margin:0}.sidebar-bottom{margin-top:auto;padding:25px 5px 0;display:flex;align-items:flex-start;gap:9px;color:var(--muted)}.sidebar-bottom .icon{width:15px;margin-top:3px}.sidebar-bottom b{font-size:11.5px;font-weight:650}.sidebar-bottom p{font-size:11px;line-height:1.8;margin:3px 0 0}main{min-width:0;min-height:0;flex:1;overflow:auto;scrollbar-width:thin}.page{max-width:1200px;margin:auto;padding:42px 45px 50px}.eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:750;color:var(--accent);margin-bottom:6px}.page h1{font-size:33.5px;line-height:1.45;letter-spacing:-1.2px;margin:0;font-weight:750}.intro{font-size:14px;color:var(--muted);margin:10px 0 0;line-height:1.9;max-width:650px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.page-head .head-mark{width:64px;height:64px;border-radius:20px;border:1px solid var(--accent-border);background:var(--soft);color:var(--accent);display:grid;place-items:center}.head-mark .icon{width:27px;height:27px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:33px 0 14px}.section-heading h2{margin:0;font-size:15px;font-weight:750}.section-heading span{font-size:11.5px;color:var(--muted)}.connected-list{display:flex;flex-direction:column;gap:9px}.connected-account{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);background:#fff;border-radius:10px}.connected-account .copy{flex:1;min-width:0}.connected-account h3{font-size:14px;margin:0 0 2px;overflow-wrap:anywhere}.connected-account p{font-size:11.5px;color:var(--muted);margin:0;overflow-wrap:anywhere}.connected-account .secondary,.connected-account .danger-button{padding:6px 9px;font-size:11.5px;min-height:31px}.badge{display:inline-flex;align-items:center;font-size:11px;border:1px solid transparent;padding:2px 6px;color:var(--muted);font-weight:550;white-space:nowrap}.badge.green{color:var(--accent)}.badge.amber{color:var(--amber)}.provider-controls{display:flex;gap:14px;justify-content:space-between;align-items:center;margin:26px 0 19px;flex-wrap:wrap}.search-box{height:37px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:#fff;border-radius:8px;padding:0 11px;min-width:210px;max-width:380px;flex:1;color:var(--muted)}.search-box input{border:0;background:transparent;outline:none;min-width:0;width:100%;font-size:12.5px}.search-box:focus-within{border-color:var(--accent)}.search-box .icon{width:15px;height:15px}.filter-group{display:flex;gap:3px;flex-wrap:wrap}.filter-button{border:1px solid transparent;background:transparent;color:var(--muted);font-size:12.5px;padding:6px 9px;border-radius:6px}.filter-button.selected{background:#fff;border-color:var(--border);color:var(--accent);font-weight:650}.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.provider-card{padding:19px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;border:1px solid var(--border);background:#fff;border-radius:11px;min-width:0;min-height:166px;color:var(--text)}.provider-card:hover{border-color:var(--accent-border);background:#fdfffe;box-shadow:0 5px 16px #20343e05}.provider-card-top{display:flex;align-items:center;gap:10px;width:100%}.provider-card strong{font-size:14px;font-weight:700;line-height:1.6}.provider-mark{width:34px;height:34px;display:grid;place-items:center;background:#edf1f4;color:#556b7b;border-radius:10px;flex-shrink:0;font-weight:750;font-size:17px}.provider-google{color:#b56546;background:#f7eee8}.provider-microsoft{color:#386ca5;background:#eaf1fa}.provider-naver,.provider-naverworks{color:#268559;background:#e8f5eb}.provider-daum{color:#ad7836;background:#fcf3dc}.provider-icloud{color:#6e79a6;background:#edf0fa}.provider-yahoo{color:#8d60b7;background:#f3edfb}.provider-proton{color:#826aa2;background:#f2ecf8}.provider-tuta{color:#a14c57;background:#f9ecee}.provider-card p{font-size:11.5px;line-height:1.9;color:var(--muted);margin:0}.provider-card-foot{display:flex;align-items:center;gap:5px;width:100%;margin-top:auto}.provider-card-foot .icon{margin-left:auto;width:14px;height:14px;color:var(--muted)}.callout{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:16px;margin-top:23px;font-size:12.5px;color:var(--muted);line-height:1.9}.callout .icon{color:var(--accent);margin-top:2px}.callout strong{display:block;color:var(--text);font-size:12.5px;margin-bottom:3px}.callout p{margin:0}.callout.amber{background:#fffaf2;border-color:#eddfc8;color:#7b673e}.empty{padding:48px 20px;border:1px dashed var(--border);border-radius:11px;text-align:center;color:var(--muted);font-size:14px;background:#ffffff80}.empty .icon{width:30px;height:30px;color:var(--accent);display:block;margin:0 auto 14px}.empty strong{display:block;color:var(--text);font-size:16px}.empty p{font-size:12.5px;line-height:1.9;margin:7px auto 16px;max-width:350px}.mail-view{height:100%;display:flex;flex-direction:column;min-height:0}.mail-top{height:62px;min-height:62px;display:flex;align-items:center;padding:0 22px;border-bottom:1px solid var(--border);gap:10px;background:#fff}.mail-top h1{font-size:18.5px;margin:0;font-weight:750}.mail-top small{font-size:11.5px;color:var(--muted)}.mail-top .icon-button{margin-left:auto}.mail-columns{display:flex;min-height:0;flex:1;padding:13px;gap:12px}.mail-list{width:34%;min-width:285px;border:1px solid var(--border);background:#fff;border-radius:11px;overflow:auto;display:flex;flex-direction:column}.list-heading{padding:18px 16px 13px;border-bottom:1px solid var(--border);font-size:14px;font-weight:700}.list-heading span{float:right;font-size:11.5px;color:var(--muted);font-weight:500}.message-list{padding:5px;flex:1}.message{display:block;width:100%;text-align:left;padding:15px 11px;border:1px solid transparent;border-radius:8px;background:#fff;color:var(--text);margin:2px 0}.message:hover{background:var(--surface)}.message.selected{background:var(--soft);border-color:var(--accent-border)}.message-head{display:flex;gap:8px;align-items:center;font-size:12.5px}.message-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.message-head time{margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted)}.message-subject{font-size:14px;font-weight:650;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:7px 0 4px}.message-preview{display:block;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pager{display:flex;justify-content:space-between;gap:8px;padding:10px;border-top:1px solid var(--border)}.pager button{font-size:11.5px;padding:5px 10px;min-height:30px}.mail-reader{flex:1;min-width:0;border:1px solid var(--border);background:#fff;border-radius:11px;overflow:auto;padding:30px clamp(22px,3.5vw,55px)}.reader-eyebrow{font-size:11.5px;color:var(--accent);margin-bottom:15px;display:flex;align-items:center;gap:6px}.reader h2{font-size:27.5px;font-weight:750;line-height:1.5;letter-spacing:-.7px;margin:0 0 23px;overflow-wrap:anywhere}.reader-meta{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:20px;margin-bottom:26px}.reader-meta .copy{min-width:0;flex:1}.reader-meta strong{font-size:14px;display:block;overflow-wrap:anywhere}.reader-meta small{font-size:11.5px;color:var(--muted);display:block;overflow-wrap:anywhere}.reader-meta time{font-size:11.5px;color:var(--muted)}.reader-body{font-size:16px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.reader-foot{border-top:1px solid var(--border);margin-top:30px;padding-top:20px;display:flex;gap:10px;align-items:center}.reader-foot small{font-size:11.5px;color:var(--muted);margin-left:auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:7px;width:33px;height:33px;flex-shrink:0}.icon-button:hover{background:var(--surface)}.statusbar{height:28px;background:#fff;border-top:1px solid var(--border);padding:0 17px;display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted)}.statusbar span{display:flex;align-items:center;gap:6px}.statusbar-right{margin-left:auto}.modal-shade{position:fixed;inset:0;background:#10232c65;backdrop-filter:blur(4px);z-index:40;display:flex;align-items:center;justify-content:center;padding:22px}.dialog{width:100%;max-width:610px;max-height:calc(100dvh - 44px);overflow:auto;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 25px 80px #16384025;padding:27px}.dialog.wide{max-width:760px}.dialog-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.dialog-head .copy{flex:1;min-width:0}.dialog h2{font-size:24px;letter-spacing:-.6px;margin:3px 0 0;line-height:1.5}.dialog-head p{font-size:12.5px;color:var(--muted);margin:5px 0 0;line-height:1.8}.dialog-head .icon-button{font-size:27.5px}.step-label{font-size:11px;font-weight:700;letter-spacing:1px;color:var(--accent)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px;min-width:0}.field label,.field-label{font-size:12.5px;font-weight:600}.field input,.field select,.field textarea{width:100%;min-width:0;padding:10px 11px;font-size:14px;border:1px solid var(--border);border-radius:7px;background:var(--surface);outline-color:var(--accent)}.field textarea{resize:vertical;min-height:170px;line-height:1.9}.field small{font-size:11px;color:var(--muted);line-height:1.8}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.server-fields{border:1px solid var(--border);border-radius:10px;padding:16px;margin:19px 0}.server-fields legend{font-size:12.5px;font-weight:700;padding:0 6px}.server-fields .field:last-child{margin-bottom:0}.endpoint-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 110px;gap:9px}.checkbox{display:flex;align-items:center;gap:7px;font-size:12.5px;margin:7px 0 15px}.checkbox input{accent-color:var(--accent)}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:23px;padding-top:18px;border-top:1px solid var(--border);flex-wrap:wrap}.dialog-actions .source-link{margin-right:auto;font-size:11.5px;text-decoration:none}.error-message{color:var(--danger);background:#fff3f1;border:1px solid #eed2cc;border-radius:7px;padding:10px 12px;font-size:12.5px;line-height:1.8;margin:15px 0}.error-message:empty{display:none}.permissions{padding:15px 18px;background:var(--surface);border:1px solid var(--border);border-radius:10px;font-size:14px;line-height:2;margin:18px 0}.permissions li{margin:2px 0}.permissions ul{margin:0;padding-left:18px}.review-grid{display:grid;grid-template-columns:70px minmax(0,1fr);gap:9px 12px;font-size:14px;overflow-wrap:anywhere}.review-grid dt{color:var(--muted)}.review-grid dd{margin:0}.review-body{font-size:15px;line-height:1.9;white-space:pre-wrap;background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:16px;max-height:290px;overflow:auto;overflow-wrap:anywhere}.loading-state{padding:70px 25px;text-align:center;font-size:14px;color:var(--muted)}.toast{position:fixed;z-index:80;bottom:43px;right:22px;max-width:min(410px,calc(100vw - 32px));background:var(--text);color:#fff;box-shadow:0 10px 30px #20343e25;border-radius:10px;padding:12px 17px;font-size:14px;line-height:1.8;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.history-row{display:flex;align-items:center;gap:15px;border:1px solid var(--border);border-radius:9px;background:#fff;padding:15px;margin-bottom:9px}.history-row .copy{flex:1;min-width:0}.history-row strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-row small{font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}.mobile-only,.scrim{display:none}[hidden]{display:none!important}
@media(min-width:1700px){.page{padding-top:55px}.provider-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.sidebar{width:208px;min-width:208px}.page{padding:33px 28px}.provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mail-list{min-width:260px}.mail-reader{padding:26px 24px}.reader h2{font-size:25.5px}}
@media(max-width:800px){.topbar{height:60px;padding:0 15px;gap:12px}.brand{font-size:22px}.brand-mark{width:33px;height:33px}.top-context{font-size:11.5px}.preview-link{display:none}.avatar{display:none}.app-body{height:calc(100dvh - 88px)}.mobile-only{display:inline-flex}.sidebar{display:none;position:absolute;z-index:31;left:0;top:60px;bottom:28px;width:260px;box-shadow:15px 0 45px #20343e20}.nav-open .sidebar{display:flex}.nav-open .scrim{display:block;position:fixed;z-index:30;inset:60px 0 28px;background:#10232c55;border:0}.page{padding:28px 21px}.page h1{font-size:30px}.page-head .head-mark{width:48px;height:48px;border-radius:15px}.page-head{gap:12px}.provider-card{padding:16px;min-height:175px}.provider-card strong{font-size:12.5px}.mail-columns{padding:9px;gap:8px}.mail-list{width:100%;min-width:0}.mail-reader{display:none}.mail-view.reading .mail-list{display:none}.mail-view.reading .mail-reader{display:block;width:100%}.mail-reader .reader-back{display:inline-flex;margin-bottom:16px}.mail-top{height:57px;min-height:57px;padding:0 15px}.mail-top small{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-top h1{font-size:16px}.dialog{padding:23px}.statusbar{padding:0 12px;gap:12px}.statusbar-right{font-size:11px}.connected-account{flex-wrap:wrap;padding:14px}.connected-account .copy{flex-basis:calc(100% - 50px)}.connected-account .badge{margin-left:46px}.connected-account button{margin-left:auto}.connected-account .danger-button{margin-left:0}.dialog-actions{gap:7px}.sidebar-bottom{padding-top:25px}.history-row{flex-wrap:wrap}.history-row .copy{flex-basis:100%}}
@media(min-width:801px){.reader-back{display:none}}
@media(max-width:450px){.topbar{gap:7px;padding:0 10px}.brand{font-size:20.5px;gap:8px}.brand small{font-size:11px}.top-context{font-size:11px;gap:5px}.top-context .status-dot{display:none}.page{padding:25px 15px 35px}.page h1{font-size:27.5px}.intro{font-size:12.5px}.provider-controls{gap:10px}.provider-grid{gap:10px}.provider-card{padding:13px;min-height:186px;gap:11px}.provider-card-top{align-items:flex-start;flex-direction:column;gap:10px}.provider-card p{font-size:11px}.provider-card-foot{flex-wrap:wrap}.provider-card-foot .badge{font-size:11px}.provider-card-foot .icon{width:12px}.head-mark{display:none!important}.filter-button{padding:5px 7px;font-size:11.5px}.search-box{max-width:none}.dialog-shade{padding:12px}.dialog{padding:19px;max-height:calc(100dvh - 24px);border-radius:12px}.modal-shade{padding:12px}.dialog h2{font-size:22px}.field-row{grid-template-columns:1fr;gap:0}.endpoint-row{grid-template-columns:minmax(0,1fr) 65px}.endpoint-row .field:last-child{grid-column:1/-1}.endpoint-row .field{margin-bottom:12px}.server-fields{padding:12px}.dialog-actions .source-link{flex-basis:100%;margin-bottom:3px}.statusbar span:nth-child(2){display:none}.reader h2{font-size:24px}.reader-body{font-size:15px}.reader-meta time{display:none}.reader-foot{flex-wrap:wrap}.review-grid{grid-template-columns:55px minmax(0,1fr);gap:8px;font-size:12.5px}.dialog-actions .primary,.dialog-actions .secondary{font-size:12.5px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.oauth-settings{border:1px solid var(--border);background:#fff;border-radius:12px;padding:22px;margin-top:25px}.oauth-settings .section-heading{margin:0 0 14px}.oauth-settings code{overflow-wrap:anywhere;font-size:11.5px}.oauth-settings .subtext{font-size:12.5px;color:var(--muted)}.row-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.local-mail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.local-mailserver{margin-bottom:24px}
.mail-search{padding:10px 12px;border-bottom:1px solid var(--border)}.mail-search .search-box{max-width:none}.attachments{list-style:none;padding:0;margin:24px 0 0;display:flex;flex-wrap:wrap;gap:8px}.attachments small{color:var(--muted);margin-left:8px}
/* 2026-11-17 따뜻한 중성 톤 테마: 회색→크림 배경, 반투명 크림 카드, 주황 포인트. 아래 블록만 지우면 이전 청록 테마로 돌아갑니다. */
:root{--bg:#e8e5dc;--app-canvas:linear-gradient(180deg,#d8d8d5 0%,var(--bg) 42%,#f4ead3 100%) fixed;--panel:#fbf8f1b8;--surface:#f6f1e6;--border:#e2dac8;--text:#2b2a27;--muted:#736f66;--accent:#c2410c;--soft:#fbe7d8;--accent-border:#efbf9d;--amber:#8a5a10;--card:#fdfaf3d9;--card-shadow:0 1px 2px #5b4a2a0d,0 14px 34px #5b4a2a14}
body{background:var(--app-canvas)}
.topbar,.statusbar{background:#fbf8f18f;backdrop-filter:blur(14px)}
.mail-top{background:transparent}
.sidebar{background:#ffffff3d}
.provider-card,.connected-account,.callout,.mail-list,.mail-reader,.history-row,.oauth-settings,.dialog{background:var(--card);border-color:#ffffffb8;border-radius:16px;box-shadow:var(--card-shadow)}
.provider-card:hover{background:#fffdf8;border-color:var(--accent-border);box-shadow:0 2px 4px #5b4a2a12,0 18px 40px #5b4a2a1c}
.callout.amber{background:#fff6e2;border-color:#f0dcae}
.message{background:transparent}
.secondary,.danger-button,.search-box,.filter-button.selected{background:#fffdf8}
.primary,.secondary,.danger-button,.search-box,.field input,.field select,.field textarea{border-radius:10px}
.brand{font-weight:650}
.brand-mark{background:linear-gradient(135deg,#f26b1d,#c2410c);box-shadow:0 4px 12px #c2410c33}
.status-dot{background:#f26b1d}
.page h1,.reader h2,.dialog h2{font-weight:500}
.mail-top h1,.section-heading h2,.provider-card strong{font-weight:600}
.page-head .head-mark{background:linear-gradient(135deg,#fff3d6,#fbe7d8);border-color:#ffffffb8;box-shadow:var(--card-shadow)}
.provider-mark:where(:not(.collection-mark)){background:#f1ebdd;color:#6a655b}
.empty{background:#fdfaf380;border-radius:16px}
/* 2026-11-17 대시보드형 골격: 사이드바 없이 상단 알약 내비게이션, 계정 칩, 카드 타일. */
body{display:flex;flex-direction:column}
.topbar{height:auto;min-height:74px;flex-wrap:wrap;background:transparent;backdrop-filter:none;border-bottom:0;padding:14px 28px;gap:12px 14px}
.brand{flex:1}
.segments{display:flex;gap:4px;padding:4px;border-radius:999px;background:#ffffff59;border:1px solid #ffffff99;max-width:100%;overflow-x:auto;scrollbar-width:none}
.segment{border:0;background:transparent;border-radius:999px;padding:8px 18px;font-size:14px;color:var(--muted);white-space:nowrap}
.segment:hover{color:var(--text)}
.segment[aria-current=page]{background:#fffdf8;color:var(--text);font-weight:600;box-shadow:0 1px 3px #5b4a2a1f}
.top-actions{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.top-context{margin-left:0;white-space:nowrap}
.compose-cta{width:auto;border-radius:999px;padding:9px 16px;box-shadow:0 4px 12px #c2410c2e}
.compose-cta span{margin:0;opacity:1}
.account-strip{display:flex;gap:8px;padding:0 28px 12px;overflow-x:auto;scrollbar-width:none;flex-shrink:0}
.account-strip[hidden]{display:none}
.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #ffffff99;background:#ffffff59;border-radius:12px;padding:6px 13px 6px 7px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.chip:hover{background:#fffdf8cc}
.chip.active{background:#fffdf8;border-color:var(--accent-border);color:var(--accent);font-weight:600}
.chip .provider-mark{width:24px;height:24px;font-size:12.5px;border-radius:8px}
.statusbar{background:transparent;border-top:0;backdrop-filter:none;flex-shrink:0}
.mail-top{border-bottom:0;padding:0 30px;height:48px;min-height:48px}
.mail-columns{padding:6px 28px 14px}
.overview{max-width:1320px;min-height:100%;margin:auto;padding:14px 28px 22px;display:flex;flex-direction:column;gap:18px}
.hero{flex:1;display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,1.15fr);gap:28px;align-items:start}
.hero h1{font-size:46px;font-weight:300;line-height:1.18;letter-spacing:-1.8px;margin:12px 0 14px}
.hero p{font-size:14px;color:var(--muted);max-width:290px;margin:0 0 20px;line-height:1.8}
.quick{display:flex;gap:8px}
.quick .icon-button{background:#ffffff80;border-color:#ffffffb8;border-radius:11px;color:var(--text);width:36px;height:36px}
.quick .icon-button.hot{background:var(--soft);color:var(--accent);border-color:var(--accent-border)}
.float-card,.tile{background:var(--card);border:1px solid #ffffffb8;border-radius:18px;box-shadow:var(--card-shadow);padding:16px 18px;min-width:0}
.float-card .message-list{padding:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;margin-bottom:8px}
.card-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-head .icon-button{width:28px;height:28px;color:var(--text)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.tile .figure{font-size:36px;font-weight:300;letter-spacing:-1.2px;line-height:1.25}
.tile .figure small{font-size:12.5px;color:var(--muted);margin-left:8px;letter-spacing:0}
.tile .latest{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
.tile .meta{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:11.5px;color:var(--muted);min-width:0}
.tile .meta span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile .meta .provider-mark{width:22px;height:22px;font-size:11.5px;border-radius:7px}
.stats{display:flex;gap:22px;margin-top:6px}
.stats b{display:block;font-size:32px;font-weight:300;line-height:1.3}
.stats span{font-size:11.5px;color:var(--muted)}
@media(max-width:800px){.topbar{padding:10px 15px;height:auto}.top-context{display:none}.segments{order:3;flex-basis:100%;justify-content:space-between}.segment{padding:8px 12px;flex:1}.account-strip{padding:0 15px 10px}.overview{padding:8px 15px 18px}.hero{grid-template-columns:1fr;gap:16px}.hero h1{font-size:34px}.mail-top{padding:0 17px}.mail-columns{padding:4px 9px 9px}}
@media(max-width:450px){.compose-cta{padding:9px 11px}.compose-cta .label{display:none}.segment{padding:8px 6px;font-size:12.5px}}
#notifyButton.on{color:var(--accent);background:var(--soft);border-color:var(--accent-border)}
/* 2026-11-17 휴대폰 레이아웃(design/mobile-mockup.html): 하단 알약 탭, 전체 화면 읽기·작성 시트, 2열 타일. */
@media(max-width:800px){
.topbar{padding:calc(10px + env(safe-area-inset-top)) 16px 8px;min-height:0}
.statusbar{display:none}
.segments{position:fixed;z-index:30;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));order:0;flex-basis:auto;background:#fbf8f1e6;backdrop-filter:blur(14px);box-shadow:var(--card-shadow)}
.segment{padding:10px 6px;font-size:14px}
main{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
body:has(.modal-shade) .segments,body:has(.mail-view.reading) .segments,body:has(.mail-view.reading) .account-strip{display:none}
body:has(.mail-view.reading) main{padding-bottom:0}
.toast{left:16px;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));max-width:none}
.account-strip{padding:2px 16px 10px}
.overview{padding:6px 16px 16px;gap:14px}
.hero h1{font-size:36px;margin:6px 0 10px}
.hero p{margin-bottom:14px}
.tiles{grid-template-columns:1fr 1fr;gap:10px}
.tile{padding:13px 14px}
.tile .figure{font-size:30px}
.tile .meta{display:none}
.stats{gap:12px;flex-wrap:wrap}
.stats b{font-size:25.5px}
.mail-top{height:44px;min-height:44px}
.mail-view.reading .mail-top{display:none}
.mail-view.reading .mail-columns{padding:0}
.mail-view.reading .mail-reader{border:0;border-radius:0;background:transparent;box-shadow:none;padding:6px 18px 18px}
.message{padding:13px 8px}
.reader-foot{flex-direction:column;align-items:stretch}
.reader-foot .primary{height:48px;border-radius:14px;font-size:15px}
.reader-foot small{margin:0;text-align:center}
.modal-shade{padding:0;align-items:stretch;backdrop-filter:none}
.dialog,.dialog.wide{max-width:none;max-height:none;height:100dvh;border:0;border-radius:0;box-shadow:none;background:linear-gradient(180deg,#d8d8d5 0%,#e8e5dc 42%,#f4ead3 100%);padding:calc(14px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.dialog form{flex:1;display:flex;flex-direction:column;min-height:0}
.dialog-head{margin-bottom:14px}
.dialog h2{font-weight:400}
.dialog .field:has(textarea){flex:1;display:flex;flex-direction:column}
.dialog .field textarea{flex:1;min-height:140px}
.field input,.field select,.field textarea{background:#fffdf8;padding:12px;border-radius:12px;font-size:15px}
.review-grid,.review-body{background:var(--card);border:1px solid #ffffffb8;border-radius:16px;box-shadow:var(--card-shadow)}
.review-grid{padding:13px 15px}
.review-body{flex:1;max-height:none;margin-top:12px}
.dialog-actions{margin-top:auto;padding-top:14px;border-top:0;flex-wrap:nowrap}
.dialog-actions .primary,.dialog-actions .secondary{flex:1;height:48px;border-radius:14px;font-size:15px;padding:0 10px}
.dialog-actions .source-link{display:none}
}
.primary:hover{background:#a8380a;border-color:#a8380a}.modal-shade{background:#3a332652}
/* 로고를 뺀 뒤에도 내비게이션이 가운데에 오도록 왼쪽에 같은 폭의 빈 칸을 둡니다. */
.topbar::before{content:'';flex:1}
/* 2026-11-17 전환 애니메이션: 탭 알약 이동, 화면 전환 방향, 읽기·대화상자 등장. 동작 줄이기 설정에서는 위의 공통 규칙이 모두 끕니다. */
@keyframes page-up{from{opacity:0;transform:translateY(12px)}}
@keyframes page-forward{from{opacity:0;transform:translateX(32px)}}
@keyframes page-back{from{opacity:0;transform:translateX(-32px)}}
@keyframes fade-in{from{opacity:0}}
@keyframes sheet-in{from{opacity:0;transform:translateY(26px) scale(.985)}}
main{overflow-x:hidden}
#main>*{animation:page-up .32s cubic-bezier(.2,.7,.2,1) both}
#main[data-dir=forward]>*{animation-name:page-forward}
#main[data-dir=back]>*{animation-name:page-back}
.tiles>*{animation:page-up .42s cubic-bezier(.2,.7,.2,1) both}
.tiles>*:nth-child(2){animation-delay:.05s}.tiles>*:nth-child(3){animation-delay:.1s}.tiles>*:nth-child(n+4){animation-delay:.15s}
.float-card{animation:page-up .42s cubic-bezier(.2,.7,.2,1) .06s both}
.reader,.message-list>.message{animation:page-up .28s cubic-bezier(.2,.7,.2,1) both}
.modal-shade{animation:fade-in .2s both}
.dialog{animation:sheet-in .3s cubic-bezier(.2,.8,.2,1) both}
.segment{position:relative;z-index:1;transition:color .2s}
.segments::before{content:'';position:absolute;z-index:0;top:4px;bottom:4px;left:0;width:var(--pill-w,0);transform:translateX(var(--pill-x,0));border-radius:999px;background:#fffdf8;box-shadow:0 1px 3px #5b4a2a1f;opacity:0;transition:transform .34s cubic-bezier(.3,.8,.3,1),width .34s cubic-bezier(.3,.8,.3,1),opacity .2s}
.segments.has-pill::before{opacity:1}
.segment[aria-current=page]{background:transparent;box-shadow:none}
.chip,.tile,.provider-card,.message{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
.tile:hover{transform:translateY(-2px)}
@media(min-width:801px){.segments{position:relative}}
/* 메일 본문 프레임: 읽기 영역의 남은 높이를 채우고 프레임 안에서 스크롤합니다. */
.mail-reader:has(.mail-frame){display:flex;flex-direction:column}
.reader:has(.mail-frame){flex:1;display:flex;flex-direction:column;min-height:0}
.mail-frame{flex:1;min-height:420px;width:100%;border:1px solid var(--border);border-radius:14px;background:#fff}
.reader-body a{color:var(--accent)}
@media(max-width:800px){.mail-frame{min-height:60dvh}}
.login-page{max-width:520px}.login-providers{display:flex;flex-direction:column;gap:10px;margin:18px 0 26px}.login-provider{height:48px;border-radius:14px;font-size:15px;text-decoration:none}
.login-provider.has-login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.login-brand-image { width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain; }
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/login-brand/google-sans-medium-latin.woff') format('woff');
  unicode-range: U+0020-007E;
}
.login-provider[data-login-provider="google"].has-login-brand {
  gap: 10px;
  padding-inline: 12px;
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
  font: 500 14px/20px 'Google Sans', 'Pretendard Variable', sans-serif;
}
.login-provider[data-login-provider="naver"].has-login-brand { background: #fff; border-color: #03a94d; color: #1f1f1f; }
.login-provider[data-login-provider="apple"].has-login-brand { position: relative; padding: 0; border: 0; border-radius: 10px; background: #000; }
.login-provider[data-login-provider="apple"].has-login-brand .login-brand-image { width: 100%; height: 100%; }
.login-provider[data-login-provider="apple"].has-login-brand .login-provider-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login-page { position: relative; }
#main > .login-page { animation: none; }
.login-swarm { position: absolute; inset-block-start: 30px; inset-inline-end: 19px; width: 48px; height: 36px; pointer-events: none; user-select: none; }
.login-swarm i {
  position: absolute; top: var(--y); left: var(--x); width: 9px; height: 13px;
  background: var(--color,#927560); transform: rotate(var(--angle,-23deg));
  clip-path: polygon(8% 3%, 95% 66%, 60% 69%, 69% 96%, 49% 100%, 38% 75%, 9% 95%);
}
.login-swarm i:nth-child(1) { --x: 30%; --y: 25%; --dx: -15px; --dy: -8px; }
.login-swarm i:nth-child(2) { --x: 51%; --y: 43%; --dx: 2px; --dy: 15px; --color: #b8572d; --angle: -15deg; }
.login-swarm i:nth-child(3) { --x: 66%; --y: 15%; --dx: 13px; --dy: -12px; --angle: 8deg; }
.login-swarm i:nth-child(4) { --x: 21%; --y: 62%; --dx: -16px; --dy: 9px; --angle: -35deg; }
.login-swarm i:nth-child(5) { --x: 79%; --y: 56%; --dx: 13px; --dy: 3px; --angle: 15deg; }
@media (min-width: 1000px) {
  .login-swarm { inset-block-start: 44px; inset-inline-end: 1px; scale: 1.3; }
}
@media (prefers-reduced-motion: no-preference) {
  .login-entrance > :is(h1, .intro, .login-providers, #loginForm) { animation: login-reveal 220ms ease-out both; }
  .login-entrance .login-swarm i { animation: login-converge 220ms cubic-bezier(.16,.68,.3,1) both; }
  @keyframes login-reveal { from { opacity: .94; translate: 0 2px; } to { opacity: 1; translate: 0 0; } }
  @keyframes login-converge {
    from { opacity: .26; transform: translate(var(--dx),var(--dy)) rotate(calc(var(--angle,-23deg) + 16deg)); }
    to { opacity: 1; transform: translate(0,0) rotate(var(--angle,-23deg)); }
  }
}
.signed-out .segments,.signed-out #composeButton,.signed-out #appSettings,.signed-out .avatar{display:none}
.image-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;padding:8px 8px 8px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13px;color:var(--muted)}.image-bar .secondary{padding:6px 12px;font-size:13px}

/* 계정별 받은편지함과 발송 상태를 표시하는 개요 */
.mail-overview {
  --board-line: #ddd8cd;
  --board-paper: #fcfaf5;
  --board-ink: #292822;
  --board-muted: #625b50;
  width: 100%;
  max-width: 1220px;
  min-height: auto;
  margin: 0 auto;
  padding-top: 24px;
  gap: 24px;
  color: var(--board-ink);
}
.overview-grid {
  grid-template-columns: minmax(285px, .82fr) minmax(365px, 1.18fr);
  grid-template-areas: "header recent" "sent recent";
  gap: 14px 24px;
  align-items: stretch;
}
.overview-grid .hero-copy { grid-area: header; padding: 12px 0 16px; }
.overview-grid h1 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 66px); }
.overview-actions,.ledger-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.overview-actions button,.mail-overview .secondary,.setup-strip button { min-height: 44px; }
.mail-overview [aria-disabled=true] { cursor: wait; opacity: .55; }
.mail-overview .float-card,.mail-overview .tile,.account-ledger {
  padding: 19px 22px;
  background: var(--board-paper);
  border: 1px solid var(--board-line);
  border-radius: 15px;
  box-shadow: 0 9px 28px #52401e0b;
}
.mail-overview .tile:hover { transform: none; }
.recent-panel { grid-area: recent; }
.send-panel { grid-area: sent; align-self: end; }
.mail-overview h2,.setup-strip h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.3px;
}
.mail-overview .card-head { margin-bottom: 0; }
.mail-overview .card-head button { font-size: 13px; padding: 8px 11px; }
.mail-overview .overview-note,.mail-overview .recent-status {
  font-size: 13px;
  color: var(--board-muted);
  line-height: 1.5;
  margin: 2px 0 10px;
}
.mail-overview .recent-status:not(:empty) { color: #78501c; }
.recent-status:empty { margin: 0; }
.recent-panel .recent-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  text-align: left;
  padding: 9px 5px;
  border: 0;
  border-top: 1px solid var(--board-line);
  border-radius: 0;
  animation: none;
}
.recent-panel .recent-row:hover,.recent-panel .recent-row:focus-visible { background: #f3eee4; }
.recent-row .recent-title,.recent-row .recent-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .recent-title { font-size: 15px; font-weight: 650; }
.recent-row .recent-from { color: var(--board-muted); font-size: 13px; grid-row: 2; }
.recent-row time { grid-column: 2; grid-row: 1/3; color: var(--board-muted); font-size: 13px; }
.mail-overview .overview-empty { color: var(--board-muted); max-width: none; padding: 14px 0; margin: 0; }
.send-panel .stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.send-panel .stats div { min-width: 0; }
.send-panel .stats div+div { padding-left: 10px; border-left: 1px solid var(--board-line); }
.send-panel .stats b { min-height: 37px; font-size: 29px; color: #765027; }
.send-panel .stats div:last-child b { color: #893f24; }
.send-panel .stats div>span { display: block; color: var(--board-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ledger-head .overview-note { margin-bottom: 0; }
.account-ledger ul { list-style: none; margin: 0; padding: 0; }
.account-row {
  display: grid;
  grid-template-columns: minmax(155px,1fr) minmax(132px,.55fr) minmax(60px,.65fr) auto;
  gap: 10px 18px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border-top: 1px solid var(--board-line);
}
.account-name { display: flex; gap: 9px; align-items: center; min-width: 0; }
.account-name > div { min-width: 0; }
.account-name strong,.account-name > div > span { display: block; overflow-wrap: anywhere; }
.account-name > div > span { color: var(--board-muted); font-size: 12px; }
.account-check { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: var(--board-muted); font-size: 13px; }
.account-check time { white-space: nowrap; font-size: 15px; }
.account-check[data-status="late"],.account-check[data-status="failed"] { color: #853c22; }
.account-result { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; color: var(--board-muted); font-size: 13px; }
.account-result .display-digits { font-size: 23px; color: #765027; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.display-digits { white-space: nowrap; }
.stats .display-digits,.display-digits .digit-face,.display-digits .digit { font-size: inherit; line-height: 1; }
.display-digits .digit-face { display: inline-flex; align-items: center; gap: .09em; color: inherit; vertical-align: -.02em; }
.digit { display: inline-grid; grid-template-columns: .11em .37em .11em; grid-template-rows: .11em .37em .11em .37em .11em; }
.digit i { background: currentColor; opacity: .12; }
.digit .lit { opacity: 1; }
.digit-a,.digit-g,.digit-d { grid-column: 2; clip-path: polygon(0 50%,15% 0,85% 0,100% 50%,85% 100%,15% 100%); }
.digit-f,.digit-b,.digit-e,.digit-c { clip-path: polygon(50% 0,100% 15%,100% 85%,50% 100%,0 85%,0 15%); }
.digit-a { grid-row: 1; }.digit-b { grid-area: 2/3; }.digit-c { grid-area: 4/3; }
.digit-d { grid-row: 5; }.digit-e { grid-area: 4/1; }.digit-f { grid-area: 2/1; }.digit-g { grid-row: 3; }

.setup-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  margin: 0 0 20px;
  background: #fcfaf5;
  border: 1px solid #ddd8cd;
  border-radius: 14px;
}
.setup-strip p,.notification-note { color: #625b50; font-size: 14px; margin: 5px 0 0; }
.preference-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  margin: 0 0 8px;
  border: 1px solid #ddd8cd;
  border-radius: 12px;
  background: #fcfaf5;
  cursor: pointer;
}
.preference-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.preference-check strong,.preference-check small { display: block; }
.preference-check small { color: #625b50; font-size: 13px; }
.quiet-fields { min-width: 0; margin: 4px 0 0; padding: 8px 12px 0; border: 1px solid #cbc3b2; border-radius: 10px; }
.quiet-fields legend { font-size: 13px; padding: 0 4px; }
.quiet-fields input { min-height: 44px; }
.notification-summary { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 18px; margin: 0 0 14px; font-size: 15px; }
.notification-summary dt { color: #625b50; }
.notification-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.notification-sample { background: #fcfaf5; border: 1px solid #ddd8cd; border-radius: 12px; padding: 14px 16px; }
.notification-sample div { display: flex; align-items: center; gap: 8px; color: #625b50; font-size: 13px; }
.notification-sample p { margin: 8px 0 0; font-size: 15px; }
.notification-preview-actions button,#notifyButton { min-height: 44px; }
#notifyButton { min-width: 44px; }
@media(min-width:801px) { .overview-grid { gap: 12px clamp(24px,4vw,54px); } }
@media(max-width:800px) {
  .mail-overview { padding-top: 10px; gap: 14px; }
  .overview-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "header" "recent" "sent"; gap: 12px; }
  .overview-grid .hero-copy { padding: 4px 0; }
  .overview-grid h1 { margin-bottom: 12px; font-size: 38px; }
  .mail-overview .float-card,.mail-overview .tile,.account-ledger { padding: 13px 14px; }
  .ledger-head { flex-wrap: wrap; }
  .account-row { grid-template-columns: minmax(90px,1fr) minmax(75px,1fr) auto; gap: 4px 8px; align-items: start; }
  .account-check { grid-column: 2; grid-row: 1; }
  .account-check time { display: block; }
  .account-result { grid-column: 2; grid-row: 2; }
  .account-row button { grid-column: 3; grid-row: 1/3; padding-inline: 9px; align-self: center; }
  .account-name .provider-mark { display: none; }
  .setup-strip { flex-wrap: wrap; }
  .dialog .notification-form { flex: 0 0 auto; }
  .dialog .notification-preview-actions,.dialog .notification-form .dialog-actions { flex-wrap: wrap; margin-top: 8px; }
  .dialog .notification-preview-actions button { height: auto; padding: 8px 10px; }
}
@media(forced-colors:active) {
  .display-digits .digit-face { display: none; }
  .display-digits .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
}

/* 계정별 받은편지함, 새 메일 감지, 발송 기록의 정보 위계를 맞춥니다. */
.mail-overview .overview-grid {
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-areas: "header header" "sent recent";
  gap: 14px 20px;
  align-items: stretch;
}
.overview-grid .hero-copy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 0 5px; }
.overview-grid .hero-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 51px); }
.mail-overview .send-panel { align-self: stretch; }
.recent-panel .recent-row { min-height: 48px; padding: 5px; }
.send-panel .stats { grid-template-columns: repeat(auto-fit,minmax(75px,1fr)); gap: 6px; margin: 10px 0; }
.send-metric {
  min-width: 0;
  min-height: 64px;
  border: 1px solid var(--board-line);
  border-radius: 9px;
  background: #fffdf8;
  padding: 4px 5px;
  text-align: left;
}
.send-metric:hover,.send-metric:focus-visible { background: #f3eee4; }
.send-metric > span { display: block; color: var(--board-muted); font-size: 12px; line-height: 1.4; }
.send-metric[data-send-filter="FAILED"],.send-metric[data-send-filter="UNKNOWN"] { border-color: #d1b598; }
.send-metric[data-send-filter="FAILED"] b,.send-metric[data-send-filter="UNKNOWN"] b { color: #853c22; }
.account-row {
  grid-template-columns: minmax(102px,.8fr) minmax(130px,1.05fr) minmax(83px,.65fr) minmax(155px,1.35fr) minmax(139px,1fr);
  gap: 7px 12px;
  padding: 9px 0;
}
.ledger-label { display: block; font-size: 12px; font-weight: 650; color: var(--board-muted); }
.ledger-cell { min-width: 0; color: var(--board-muted); font-size: 13px; overflow-wrap: anywhere; }
.ledger-cell .display-digits,.account-result .display-digits { color: #765027; font-size: 16px; }
.account-check,.account-result { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.ledger-row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.ledger-row-actions .secondary { padding: 5px 9px; white-space: nowrap; min-height: 44px; }
.ledger-row-actions .retry-inbox { color: #853c22; }
.account-send-summary { display: flex; flex-wrap: wrap; gap: 3px 8px; }
.account-send-summary [data-send-state] { white-space: nowrap; }
.account-send-summary [data-send-state="FAILED"],.account-send-summary [data-send-state="UNKNOWN"] { color: #853c22; }

.history-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.history-head h1 { margin-bottom: 0; }
.history-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 580px; gap: 10px; margin-top: 14px; }
.history-filters select,.send-history button { min-height: 44px; }
.history-filters select {
  appearance: none;
  line-height: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%232b2a27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 12px;
  /* 기본 꺾쇠를 숨긴 뒤에도 선택 상자의 글자 위치와 높이를 유지합니다. */
  padding-block: 13px;
  padding-inline: 16px 26px;
}
.history-filters .field > label { font: inherit; }
.history-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  width: 100%; min-width: 0; padding: 13px 10px 13px 16px;
  line-height: normal; font-size: 15px; text-align: start;
  border: 1px solid var(--border); border-radius: 12px; background: #fffdf8;
}
.history-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-select-trigger svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.history-select-trigger[aria-expanded="true"] { border-color: var(--accent-border); }
.history-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.history-select-popover {
  position: fixed; inset: auto; margin: 0; overflow: auto; overscroll-behavior: contain;
  padding: 4px; border: 1px solid var(--border); border-radius: 12px;
  background: #fffdf8; color: var(--text); box-shadow: var(--card-shadow); scrollbar-width: thin;
}
.history-select-popover [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 36px; padding: 5px 10px; border-radius: 7px;
  font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; cursor: pointer;
}
.history-select-popover [data-active] { background: var(--surface); outline: 1px solid var(--border); outline-offset: -1px; }
.history-select-popover [role="option"]:hover { background: var(--surface); }
.history-select-check { flex: none; color: var(--accent); font-weight: 700; visibility: hidden; }
.history-select-popover [aria-selected="true"] .history-select-check { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .history-select-popover:popover-open [role="option"] {
    animation: history-option-enter 120ms cubic-bezier(.2,.7,.3,1) backwards;
    animation-delay: calc(var(--option-order) * 13ms);
  }
  @keyframes history-option-enter { from { opacity: .45; translate: 0 -3px; } }
}
@media (pointer: coarse) {
  .history-select-popover [role="option"] { min-height: 44px; }
}
@media (forced-colors: active) {
  .history-select-popover [data-active] { outline-color: Highlight; }
}
.history-summary { color: #625b50; margin-top: 0; }
.send-history .history-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(76px,auto) auto; align-items: center; gap: 5px 12px; padding: 8px 13px; margin-bottom: 5px; }
.send-history .history-row small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.history-state { justify-self: start; white-space: nowrap; }
[data-draft-state="FAILED"] .history-state,[data-draft-state="UNKNOWN"] .history-state { color: #6c3a20; }
[data-draft-state="SENT"] .history-state { color: #325444; }
#reloadHistory[aria-disabled="true"] { cursor: wait; opacity: .55; }
@media (max-width: 990px) {
  .account-row { grid-template-columns: minmax(100px,.9fr) minmax(100px,1fr) minmax(70px,.7fr) minmax(128px,1.2fr); align-items: start; }
  .ledger-row-actions { grid-column: 1/-1; justify-content: flex-start; }
}
@media (max-width: 800px) {
  .mail-overview .overview-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "header" "sent" "recent"; gap: 10px; }
  .mail-overview { gap: 12px; }
  .overview-grid .hero-copy h1 { font-size: 34px; }
  .account-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "name name" "inbox arrivals" "send send" "tools tools"; row-gap: 7px; }
  .account-name { grid-area: name; }
  .account-name .provider-mark { display: inline-grid; }
  .ledger-inbox { grid-area: inbox; }
  .ledger-arrivals { grid-area: arrivals; }
  .ledger-send { grid-area: send; }
  .ledger-row-actions { grid-area: tools; }
  .account-check time { display: inline-flex; }
  .send-history .history-row { grid-template-columns: minmax(0,1fr) auto; }
  .send-history .copy { grid-column: 1/-1; }
  .history-filters .field { margin-bottom: 8px; }
}
.draft-progress { color: #625b50; margin: 8px 0 0; font-size: 14px; }
.draft-progress:empty { display: none; }
.account-strip .chip { max-width: 210px; }
.account-strip .chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-overview .display-digits { display: inline-flex; align-items: center; line-height: 1; }
.mail-overview .digit-face { display: flex; align-items: center; }
.send-metric { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
.send-metric b { display: flex; align-items: center; min-height: 0; }
[data-arrival-account],.account-send-summary [data-send-state] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (max-width: 800px) {
  .ledger-inbox .account-check,.ledger-inbox .account-result { display: inline-flex; vertical-align: middle; }
  .ledger-inbox .account-result { margin-inline: 3px 0; }
}
@media (forced-colors: active) {
  .mail-overview .digit-face { display: none; }
  .history-filters select { appearance: auto; background-image: none; padding: 12px; }
}
@media (max-width: 470px) {
  .send-panel .stats { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .send-metric { grid-column: span 2; }
  .send-metric:nth-last-child(-n+2) { grid-column: span 3; }
  .dialog .review-grid { grid-template-columns: minmax(71px,auto) minmax(0,1fr); }
}

/* 받은편지함, 작성, 기록에서 계정 이름과 주소를 함께 표시합니다. */
.mail-top.mailbox-top {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 4px 28px 10px;
}
.mailbox-identity { min-width: 0; }
.mailbox-identity h1 { margin: 0 0 2px; font-size: 27px; }
.mailbox-identity p,.history-scope p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.mailbox-identity p span,.history-scope p span { min-width: 0; overflow-wrap: anywhere; color: #625b50; font-size: 13px; }
.mailbox-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mailbox-actions button,.mailbox-problem button { min-height: 44px; padding: 6px 9px; }
.mailbox-actions [aria-disabled="true"] { cursor: wait; opacity: .55; }
.mailbox-actions select { min-height: 44px; padding: 6px 9px; border: 1px solid var(--border); background: #fffdf8; border-radius: 10px; }
.mail-move-unavailable { margin: 0 0 14px; font-size: 12px; color: #625b50; }
.account-strip:has(#mailAccountFilter[open]) > .chip { display: none; }
#mailAccountFilter { flex-shrink: 0; }
#mailAccountFilter[open] { width: 100%; max-height: 42vh; overflow: auto; }
#mailAccountFilter > summary { min-height: 40px; width: fit-content; padding: 8px 10px; cursor: pointer; }
#mailAccountForm { margin: 0 0 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fbf8f0; }
.filter-controls { display: flex; gap: 6px; }
.filter-accounts { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 8px; margin: 8px 0; }
.filter-accounts fieldset { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 7px; }
.filter-accounts label { min-height: 40px; display: flex; align-items: center; gap: 8px; }
.filter-accounts input { accent-color: var(--accent); width: 18px; height: 18px; }
.mailbox-problem { padding: 0 10px 10px; }
.mailbox-problem p { margin: 3px 0 0; }
.mail-collection { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid #dcd0bc; border-radius: 6px; background: #fffdf8; color: #473927; font-size: 12px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.mail-collection > span:last-child { min-width: 0; }
.message > .mail-collection { margin-bottom: 4px; }
.reader-collection { margin-bottom: 14px; }
.collection-caption { margin-right: 4px; color: #625b50; font-weight: 500; }
.collection-mark { width: 15px; height: 15px; border-radius: 4px; font-size: 10px; margin-top: 1px; }
.collection-mark .icon { width: 11px; height: 11px; }
.message-seen { white-space: nowrap; font-size: 11px; color: #625b50; }
.message[data-header-only] { cursor: default; }
.message[data-header-only]:hover, .recent-panel .recent-row[data-header-only]:hover { background: transparent; }
.seen-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin: 0 0 14px; }
.seen-controls button { min-height: 44px; }
.seen-controls p { margin: 0; font-size: 12px; }
.mail-list,.mail-reader,.mail-view.reading .mail-reader { background: #fbf8f0; }
@media (min-width: 1000px) {
  .segment { font-size: 15px; }
  .mailbox-identity h1 { font-size: 34px; }
  .message-head { font-size: 15px; }
  .message-subject { font-size: 18px; }
  .message-preview,.message-head time,.mail-collection { font-size: 13px; }
  .reader h2 { font-size: 36px; line-height: 1.3; }
  .reader-meta strong { font-size: 17px; }
  .reader-body { font-size: 20px; line-height: 1.8; max-width: 67ch; }
  .oauth-settings .section-heading h2 { font-size: 17px; }
  .oauth-settings .subtext,.oauth-settings .checkbox { font-size: 14.5px; }
  .oauth-settings .row-actions .secondary { font-size: 15px; }
  .login-page h1 { font-size: 40px; }
  .login-providers { max-width: 360px; }
  .segments { background: #f4efe4; border-color: #fffdf8; }
  @supports (backdrop-filter: blur(12px)) {
    .segments {
      background: linear-gradient(180deg,#fffdf8dc,#f7f0e6ae);
      backdrop-filter: blur(12px) saturate(120%);
      box-shadow: inset 0 1px 0 #ffffffcc,0 3px 12px #54453614;
    }
  }
}
@media (min-width: 1000px) and (prefers-reduced-transparency: reduce) {
  .segments { background: #f4efe4; backdrop-filter: none; }
}
.mail-columns .mail-search { padding-top: 8px; }
.compose-identity small { color: #625b50; overflow-wrap: anywhere; }
.draft-identity dd { min-width: 0; overflow-wrap: anywhere; }
.draft-identity dd strong,.draft-identity dd span { display: block; }
.draft-identity dd span { color: #625b50; }
.history-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 4px; }
.history-scope p { min-width: 0; overflow-wrap: anywhere; }
.history-addresses {
  margin: 2px 0 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 1px 6px;
  color: #625b50;
  font-size: 12px;
  line-height: 1.5;
}
.history-addresses dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
@media(max-width:800px) {
  .mail-top.mailbox-top { padding: 2px 16px 8px; gap: 6px; }
  .mailbox-identity h1 { font-size: 23px; }
  .mailbox-identity p,.mailbox-actions button { font-size: 13px; }
  .mailbox-actions button { padding-inline: 7px; }
  .history-scope .secondary,.history-head .secondary { font-size: 13px; padding-inline: 8px; }
}

@media(max-width:470px) {
  .dialog .draft-identity { grid-template-columns: minmax(58px,auto) minmax(0,1fr); }
}

.clock-range,.mailbox-actions button,.history-head .secondary,.dialog-actions button { white-space: nowrap; }
.connection-help { margin-top: 4px; }
.connection-help summary { cursor: pointer; width: fit-content; }
@media(max-width:800px) {
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .primary,.dialog-actions .secondary { flex-basis: auto; height: auto; min-height: 48px; }
}
.production-signin .topbar,
.production-signin .statusbar { display:none; }
.production-signin #main { padding:0; min-height:0; width:100%; }
#main > .glass-signin {
  position:relative; isolation:isolate; display:grid; justify-items:center; align-items:start;
  box-sizing:border-box; width:100%; min-height:100dvh; overflow:hidden;
  padding:clamp(48px,12vh,116px) 20px 48px; animation:none;
  background:transparent; color:var(--text);
}
.glass-color-field { display:none; }
.glass-a11y,.glass-filter-defs {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.glass-lens {
  --glint-x:36%; --glint-y:12%;
  position:relative; isolation:isolate; box-sizing:border-box; width:min(100%,452px); min-height:385px;
  padding:44px 42px 92px; border-radius:46px;
  border:1px solid #f9dfff75;
  background:linear-gradient(138deg,#62455e 0%,#493b61 60%,#392c50 100%);
  box-shadow:0 33px 84px #1b0c35a0,inset 0 0 0 6px #eacaed26,inset 0 2px 3px #fff4ff8a;
}
@supports (backdrop-filter:blur(1px)) {
  .glass-lens { background:linear-gradient(144deg,#fff2ff24,#46184917 57%,#dab1ff17); backdrop-filter:blur(17px) saturate(124%); }
}
.glass-edge {
  position:absolute; z-index:-1; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 1px #fff3ffa6,inset 0 0 0 3px #fce5ff45,
    inset 0 8px 13px #fff9ff43,inset 0 -7px 15px #20113975,inset 0 -1px 4px #f0cdffb5;
  background:radial-gradient(ellipse at var(--glint-x) var(--glint-y),#fff0ff87,transparent 53%);
  padding:16px;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
}
@supports (backdrop-filter:url(#everymail-glass-refraction)) {
  .glass-refracts {backdrop-filter:none;}
  .glass-refracts::before {
    content:"";position:absolute;z-index:-2;inset:13px;border-radius:32px;pointer-events:none;
    backdrop-filter:blur(15px) saturate(120%);
  }
  .glass-refracts .glass-edge { backdrop-filter:url(#everymail-glass-refraction) saturate(137%); }
}
.glass-provider-list {display:grid; gap:14px; position:relative;}
.glass-provider {
  display:flex; align-items:center; justify-content:center; gap:10px;
  position:relative; box-sizing:border-box; min-height:59px; width:100%; padding:12px 14px;
  border:1px solid #fff4ffd1; border-radius:17px;
  background:linear-gradient(155deg,#fff9fdea,#eee2f6e0);
  color:#291832; font-family:inherit; font-size:16px; font-weight:650; line-height:1.35;
  text-align:center; text-decoration:none; overflow-wrap:anywhere;
  box-shadow:0 9px 21px #24123541,inset 0 1px 0 #fff;
  transition:background-color .18s,border-color .18s,box-shadow .18s,translate .18s;
}
a.glass-provider:hover {translate:0 -2px; background:#fff9ff; box-shadow:0 11px 26px #2412355c,inset 0 1px 0 #fff;}
.glass-provider:focus-visible {outline:2px solid #fff;outline-offset:4px;box-shadow:0 0 0 3px #291835;}
.glass-provider:disabled {
  color:#f4e9f7; opacity:1; cursor:default;
  border-color:#f9e9ff66; background:linear-gradient(155deg,#62526fae,#483a6298);
  box-shadow:0 5px 17px #21153233,inset 0 1px 0 #f9e9ff55;
}
.glass-provider-mark {width:18px;height:18px;flex:none;object-fit:contain;}
.glass-provider:disabled:not([data-provider="naver"]) .glass-provider-mark {filter:grayscale(.28);}
.glass-apple-art {max-width:100%;width:320px;height:auto;object-fit:contain;}
.glass-apple-branded {background:#000; color:#fff;}
.glass-apple-branded span {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
@media (max-width:420px) {
  .glass-lens {min-height:345px;padding:36px 25px 68px;border-radius:38px;}
  .glass-provider-list {gap:12px;}
  .glass-provider {min-height:57px;padding-inline:10px;}
}
@media (prefers-reduced-transparency:reduce) {
  .glass-lens {backdrop-filter:none;background:linear-gradient(144deg,#60485f,#393054);}
  .glass-refracts::before {backdrop-filter:none;}
  .glass-refracts .glass-edge {backdrop-filter:none;}
}
@media (prefers-reduced-motion:reduce) {
  .glass-provider {transition:none;}
  a.glass-provider:hover {translate:none;}
}

.service-guide p {margin:0;word-break:keep-all;overflow-wrap:anywhere;}
.service-guide p+p {margin-top:.35em;}
.service-guide p:first-child {font-weight:650;}
.glass-lens .service-guide {margin-top:20px;color:#fff8ff;}
@supports (backdrop-filter:blur(1px)) {
  .glass-lens .service-guide {color:var(--text);}
}
@media (prefers-reduced-transparency:reduce) {
  .glass-lens .service-guide {color:#fff8ff;}
}
.service-guide-disclosure {margin:18px 0;}
.service-guide-disclosure summary {width:fit-content;cursor:pointer;}
.service-guide-disclosure .service-guide {margin-top:8px;}
#logoutButton {background:#982d35;color:#fff;border-color:#982d35;}
#logoutButton:hover {background:#80222a;border-color:#80222a;}
#logoutButton:focus-visible {outline:2px solid #671c22;outline-offset:2px;}
@media(forced-colors:active) {
  #logoutButton:focus-visible {outline-color:Highlight;}
}

/* 메일 개요와 받은편지함의 제목과 첫 콘텐츠 간격 */
.mail-start > h1,
.mail-overview .hero-copy > h1,
.mail-inbox .mailbox-identity > h1 {
  position: relative;
  top: -4px;
}
.mail-start > .empty { margin-block-start: 16px; }
.mail-overview .overview-grid { row-gap: calc(1em + 8px); }
.mail-inbox:not(.reading) > .mail-columns { margin-block-start: 8px; }
