:root{color-scheme:light;font-family:Trebuchet MS,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#1f2a2f;background:radial-gradient(circle at top left,rgba(244,176,88,.18),transparent 28%),radial-gradient(circle at top right,rgba(72,132,109,.14),transparent 24%),linear-gradient(180deg,#f8f1e8,#f2ece3)}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow:hidden}button,input,select{font:inherit}code{padding:.08rem .35rem;border-radius:999px;background:#27383a14}.page-shell{width:100%;height:100vh;margin:0;padding:16px 20px 20px;display:flex;flex-direction:column;overflow:hidden}.records-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.records-hero-block{display:flex;flex:1;min-width:0;flex-direction:column;gap:10px}.hero-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,340px)}.records-metrics{width:min(100%,340px);max-width:340px;margin-left:auto}.records-hero h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.6rem,2.2vw,2.1rem);line-height:1.05;color:#173039}.eyebrow{margin:0 0 6px;color:#a45f24;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:700}.metric-card{min-height:76px;padding:12px 16px;border-radius:22px;background:#ffffffb3;border:1px solid rgba(23,48,57,.08);box-shadow:0 14px 34px #21333c14}.metric-card span{display:block;color:#5d7479;font-size:.84rem;text-transform:uppercase;letter-spacing:.08em}.metric-card strong{display:block;margin-top:8px;font-size:clamp(1.35rem,2.2vw,2.05rem);color:#173039}.metric-card.accent{background:linear-gradient(145deg,#173039,#2f5f57)}.metric-card.accent span,.metric-card.accent strong{color:#f7f4ef}.notice{margin-bottom:12px;padding:12px 14px;border-radius:16px;border:1px solid transparent;flex-shrink:0}.notice-inline{margin-bottom:0;max-width:min(100%,560px)}.notice.success{background:#55966824;border-color:#4a765433}.notice.error{background:#c05b4c1f;border-color:#b04d3f38}.layout-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:14px;flex:1;min-height:0}.records-column{display:flex;flex-direction:column;flex:1;min-height:0}.panel{padding:18px;border-radius:24px;background:linear-gradient(180deg,#ffffffc7,#ffffffa6),linear-gradient(120deg,rgba(255,255,255,.4),transparent);border:1px solid rgba(23,48,57,.08);box-shadow:0 14px 34px #21333c14;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);min-height:0;overflow:hidden}.account-panel,.records-panel{display:flex;flex-direction:column;flex:1;min-height:0}.account-panel{min-height:760px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}.panel-head h2{margin:0 0 4px;font-family:Georgia,Times New Roman,serif;font-size:1.6rem;color:#1b3741}.panel-head p{margin:0;color:#61777b}.panel-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.oauth-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.oauth-row.single-provider{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-bottom:0}.oauth-button,.ghost-button,.primary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease}.oauth-button:hover,.ghost-button:hover,.primary-button:hover,.danger-button:hover{transform:translateY(-1px)}.oauth-button{flex-direction:column;align-items:flex-start;padding:14px 16px;min-height:88px;background:#fff9f2;color:#1c3440;border:1px solid rgba(164,95,36,.16)}.oauth-button small{color:#6e7776}.oauth-button.disabled{opacity:.58;cursor:not-allowed}.setup-note{margin-bottom:12px;padding:10px 12px;border-radius:16px;background:#1c34400f;color:#475d66;font-size:.9rem}.setup-note.compact{margin-bottom:10px}.provider-setup-shell{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}.provider-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.provider-tab{display:grid;gap:4px;width:100%;padding:12px 10px;border:1px solid rgba(23,48,57,.1);border-radius:16px;background:#ffffffb8;color:#29434b;cursor:pointer;text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease}.provider-tab:hover{transform:translateY(-1px)}.provider-tab span{font-weight:700}.provider-tab small{color:#6a7e84;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem}.provider-tab.active{background:linear-gradient(135deg,#173039,#2f5f57);color:#f7f4ef;border-color:#17303947;box-shadow:0 12px 24px #1f484e29}.provider-tab.active small{color:#f7f4efc2}.provider-stage{min-width:0;padding:14px;border-radius:18px;background:#ffffff75;border:1px solid rgba(23,48,57,.08)}.provider-stage-actions{display:flex;gap:10px;margin-bottom:12px}.form-actions{display:flex;gap:10px}.form-actions .primary-button{flex:1}.mail-form{display:grid;gap:12px;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}label{display:grid;gap:8px}label span{font-size:.86rem;font-weight:700;color:#29434b}input,select{width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(23,48,57,.12);background:#ffffffd6;color:#1f2a2f}input:focus,select:focus{outline:2px solid rgba(164,95,36,.24);border-color:#a45f243d}.primary-button{min-height:48px;background:linear-gradient(135deg,#1f484e,#2f6a5c);color:#f8f2eb;box-shadow:0 12px 24px #1f484e2e}.primary-button:disabled{opacity:.7;cursor:wait}.ghost-button{min-height:42px;min-width:76px;padding:0 14px;background:#1c34400f;color:#1c3440;white-space:nowrap;writing-mode:horizontal-tb}.danger-ghost-button:hover{background:#b74d3d1f;color:#a2473c;border:1px solid rgba(162,71,60,.34);box-shadow:0 10px 20px #a2473c29}.danger-button{min-height:42px;min-width:64px;padding:0 12px;background:#b74d3d1a;color:#a2473c;flex:0 0 auto;white-space:nowrap;writing-mode:horizontal-tb}.account-list{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-gutter:stable}.account-card,.empty-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:18px;background:#ffffffbd;border:1px solid rgba(23,48,57,.08)}.account-card{position:relative;align-items:flex-start;padding-right:48px}.empty-card.compact{min-height:72px}.account-card>:first-child{flex:1;min-width:0}.account-remove-button{position:absolute;top:10px;right:10px;width:26px;height:26px;border:0;border-radius:999px;background:#17303914;color:#5f7579;font-size:1rem;line-height:1;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.account-remove-button:hover{background:#bf5b4c24;color:#9e4337;transform:scale(1.05)}.empty-card{justify-content:center;min-height:120px;color:#62767c;text-align:center}.account-topline{display:flex;align-items:center;gap:8px;margin-bottom:4px}.muted-line{margin:2px 0;color:#5f7579;font-size:.88rem;word-break:break-all}.status-dot{width:10px;height:10px;border-radius:999px;background:#9aa8ae}.status-dot.connected{background:#4e9b62}.status-dot.connecting,.status-dot.reconnecting{background:#c67e34}.status-dot.error{background:#bf5b4c}.filter-row{display:flex;gap:10px}.records-table{display:block;border-radius:18px;overflow:auto;border:1px solid rgba(23,48,57,.08);flex:1;min-height:0;background:#ffffff9e}.table-head,.table-row{display:grid;grid-template-columns:minmax(76px,.5fr) minmax(148px,1.2fr) minmax(132px,.95fr) minmax(150px,1fr) minmax(88px,.6fr) minmax(220px,1.45fr);gap:12px;align-items:center;padding:14px 16px;width:max-content;min-width:100%}.table-head{background:#173039;color:#f5efe7;font-size:.84rem;letter-spacing:.04em;text-transform:uppercase;position:sticky;top:0;z-index:1;box-shadow:0 1px #0814182e}.table-head span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-row{background:#ffffffc7;border-top:1px solid rgba(23,48,57,.06)}.table-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.code-cell{font-size:1.28rem;font-weight:700;letter-spacing:.1em;color:#1b3741;font-variant-numeric:tabular-nums}.expiry-badge{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:.24rem .4rem;border-radius:999px;font-size:.84rem;font-weight:700}.expiry-badge.active{background:#4e9b621f;color:#317145}.expiry-badge.expired{background:#bf5b4c1f;color:#9e4337}.sender-cell,.account-email-cell,.time-cell{min-width:0}.sender-cell{display:block;min-width:148px;white-space:nowrap!important;writing-mode:horizontal-tb;text-orientation:mixed;word-break:keep-all;overflow-wrap:normal}.account-email-cell{font-variant-numeric:tabular-nums}.platform-cell{text-align:left}.saved-client-list{display:grid;gap:10px}.saved-client-list>.empty-card.compact{display:none}.saved-client-card{position:relative;width:100%;border-radius:18px;border:1px solid rgba(164,95,36,.16);background:#fff9f2;transition:border-color .16s ease,box-shadow .16s ease}.saved-client-card.active{border-color:#1f484e57;box-shadow:0 12px 24px #1f484e1f}.saved-client-main{display:grid;gap:6px;width:100%;padding:14px 16px;border:0;border-radius:18px;background:transparent;color:#1c3440;text-align:left;cursor:pointer;transition:transform .16s ease}.saved-client-main:hover{transform:translateY(-1px)}.saved-client-main strong{font-size:1rem}.saved-client-main span{color:#6e7776;font-size:.84rem}.saved-client-delete{position:absolute;top:10px;right:10px;min-height:30px;min-width:48px;padding:0 10px;border:0;border-radius:999px;background:#b74d3d1f;color:#a2473c;cursor:pointer}@media(max-width:1080px){body{overflow:auto}.page-shell{height:auto;min-height:100vh;overflow:visible}.layout-grid{grid-template-columns:1fr}.layout-grid{flex:none}.panel-actions{width:100%;justify-content:flex-end}.account-panel,.records-panel,.account-list,.records-table{overflow:visible}}@media(max-width:820px){.page-shell{padding:18px 14px 28px}.panel-actions{display:grid}.records-topbar{flex-direction:column;align-items:stretch}.hero-metrics,.oauth-row,.form-grid,.filter-row,.provider-setup-shell{grid-template-columns:1fr}.records-metrics{max-width:none;margin-left:0}.filter-row{display:grid}.provider-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.provider-stage-actions,.form-actions{display:grid}.table-head{display:none}.table-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:flex-start}.table-row span{white-space:normal}.account-card{flex-direction:column;align-items:stretch;padding-right:44px}}
