/* SEWork · Korean Clean Minimalist Design System (Cobalt #3B5BFF + Mint #2EC4B6) */
:root{
  font-family:"Biz Sans","HarmonyOS Sans SC","PingFang SC","PingFang TC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  color:#191f28;
  background:#f5f7fb;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  --blue:#3b5bff;
  --blue-hover:#2e4df0;
  --blue-soft:#eef2ff;
  --mint:#2ec4b6;
  --mint-text:#0b7f74;
  --mint-soft:#e6faf8;
  --mint-border:#9ce5dd;
  --navy:#191f28;
  --ink:#191f28;
  --ink-2:#4e5968;
  --muted:#6b7684;
  --surface:#ffffff;
  --field-bg:#f3f6fa;
  --border:#eaeef5;
  --radius-card:20px;
  --radius-ctl:13px;
  --shadow-card:0 2px 8px rgba(25,31,40,.03),0 8px 24px rgba(25,31,40,.04);
  --hant-font:"PingFang TC","HarmonyOS Sans TC","Microsoft JhengHei","Noto Sans TC","Biz Sans","HarmonyOS Sans SC",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
}
html[lang="zh-Hant"]{font-family:var(--hant-font)}
*{box-sizing:border-box}
body{margin:0;background:#f5f7fb;color:var(--ink)}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background-color .15s,border-color .15s,color .15s,transform .12s,box-shadow .15s}
button:disabled{opacity:.48;cursor:not-allowed}
button,.button{border:0;border-radius:12px;padding:10px 18px;background:var(--blue);color:#fff;font-weight:600;font-size:14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.4}
button:hover:not(:disabled),.button:hover{background:var(--blue-hover)}
.secondary{background:#fff;border:1px solid #dfe5ef;color:var(--ink-2)}
.secondary:hover:not(:disabled){background:#f7f9fc;border-color:#cfd8e6;color:var(--ink)}
.danger{background:#fff1f2;color:#c92a37;border:1px solid #fecdd3}
.danger:hover:not(:disabled){background:#ffe4e6}
.small{padding:7px 13px;font-size:13px;border-radius:10px}
.link{background:none;color:var(--blue);padding:0;border:0;font-size:13px;font-weight:600}
.link:hover:not(:disabled){background:none;color:var(--blue-hover);text-decoration:underline}

/* ---------- Tree & Roster selection ---------- */
.tree-name{display:flex;align-items:center;gap:8px;min-height:32px}
.tree-toggle{width:28px;min-width:28px;padding:3px;flex-shrink:0;border-radius:8px}
.tree-leaf{display:inline-block;width:28px;min-width:28px;color:#b0bac9;flex-shrink:0}
.tree-indent{width:16px;min-width:16px;align-self:stretch}

/* ---------- Admin Shell (Clean Pure-White Sidebar + Airy Canvas) ---------- */
.shell{display:flex;min-height:100vh;background:#f5f7fb}
.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#ffffff;color:var(--ink);padding:22px 14px;display:flex;flex-direction:column;z-index:20;border-right:1px solid var(--border);overflow-y:auto}
.brand{display:flex;gap:11px;align-items:center;padding:4px 10px 20px;border-bottom:1px solid var(--border)}
.brand-mark{width:38px;height:38px;background:linear-gradient(145deg,#4c6eff,#3b5bff);color:#fff;border-radius:12px;display:grid;place-items:center;flex-shrink:0;box-shadow:0 6px 14px rgba(59,91,255,.24)}
.brand-svg{width:20px;height:20px}
.brand-copy{min-width:0}
.brand strong{display:block;font-size:14px;font-weight:700;color:var(--ink);line-height:1.35;letter-spacing:-.01em}
.brand small{display:block;font-size:11px;font-weight:600;color:var(--mint-text);letter-spacing:.02em;margin-top:1px}
.nav-label{color:#8b95a1;font-size:11px;font-weight:600;letter-spacing:.06em;margin:18px 12px 8px}
.nav{display:flex;flex-direction:column;gap:3px;flex-shrink:0}
.nav button{justify-content:flex-start;background:transparent;color:var(--ink-2);padding:10px 12px;font-size:14px;font-weight:500;border-radius:12px;gap:10px}
.nav button:hover:not(.active){background:#f4f7fc;color:var(--ink)}
.nav button.active{color:var(--blue);background:var(--blue-soft);font-weight:600;box-shadow:none}
.nav button.active .nav-icon{color:var(--blue)}
.nav-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:#7b8794;flex-shrink:0}
.nav-svg{width:18px;height:18px}
.sidebar-foot{margin-top:auto;padding:16px 12px 4px;border-top:1px solid var(--border);color:#8b95a1;font-size:11px;line-height:1.7}

.workspace{margin-left:244px;width:calc(100% - 244px);min-width:0;min-height:100vh;display:flex;flex-direction:column}
.topbar{height:auto;min-height:66px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.94);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;padding:10px 32px;gap:14px;flex-wrap:wrap;position:sticky;top:0;z-index:15}
.topbar>.toolbar{flex-shrink:0;gap:8px}
.topbar>.toolbar .secondary.small{border-radius:999px;background:var(--blue-soft);border-color:transparent;color:var(--blue);font-size:12.5px;padding:6px 14px}
.topbar>.toolbar .secondary.small:hover:not(:disabled){background:#dfe7ff;color:var(--blue-hover)}
.breadcrumb{font-size:13.5px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.top-actions{display:flex;align-items:center;gap:12px;min-width:0}
.top-actions select{width:108px;flex:0 0 108px;min-height:34px!important;padding:5px 28px 5px 12px!important;border:1px solid var(--border)!important;border-radius:999px!important;background-color:#f7f9fc!important;color:var(--ink-2);font-size:12.5px!important;font-weight:500}
.user-chip{display:flex;align-items:center;gap:10px;font-size:12px;min-width:120px;white-space:nowrap;flex-shrink:0}
.user-detail{min-width:72px;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-detail strong{display:block;font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.user-chip small{display:block;color:var(--muted);margin-top:1px}
.avatar{height:34px;width:34px;border-radius:50%;background:var(--mint-soft);color:var(--mint-text);border:1px solid var(--mint-border);display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}

.content{padding:26px 32px 40px;max-width:1520px;width:100%;margin:0 auto;flex:1}
.workspace,.content,.content>div,.card,.report-summary>*{min-width:0}
.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.page-title h1{margin:0 0 6px;font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.subtitle{font-size:13px;color:var(--muted);line-height:1.65;margin:0}
.eyebrow{font-size:11px;letter-spacing:.08em;color:var(--blue);font-weight:700;margin-bottom:6px}

/* ---------- Cards, Stats, Tables ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);margin-bottom:22px;overflow:hidden}
.card-head{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f3f8;gap:12px}
.card-head h2{font-size:16px;font-weight:700;margin:0;color:var(--ink);letter-spacing:-.01em}
.card-body{padding:22px 24px}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
.stat{padding:22px 24px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);position:relative}
.stat-label{font-size:13px;font-weight:600;color:var(--muted)}
.stat-value{font-size:32px;font-weight:700;margin:12px 0 6px;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.stat-note{font-size:12px;color:#8b95a1}
.stat-icon{float:right;background:var(--blue-soft);color:var(--blue);width:38px;height:38px;display:grid;place-items:center;border-radius:12px;font-size:18px}

.grid-two{display:grid;grid-template-columns:1.45fr 1fr;gap:22px}
.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.quick{background:#f7f9fd;color:var(--ink);justify-content:flex-start;padding:16px 18px;border:1px solid #e7edf8;border-radius:14px;font-weight:600}
.quick:hover:not(:disabled){background:var(--blue-soft);border-color:#cdd9ff;color:var(--blue)}

.info-banner{background:var(--mint-soft);border:1px solid var(--mint-border);padding:14px 18px;border-radius:14px;color:#0b6b62;font-size:13px;line-height:1.7;margin-bottom:20px}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.search{display:flex;gap:8px;min-width:260px;max-width:100%;flex:0 1 390px}
.search input{min-width:0;width:auto;flex:1 1 180px}
.search button{flex:0 0 auto}

.table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th{font-size:12px;font-weight:600;color:#6b7684;background:#f9fbfe;letter-spacing:.01em}
th,td{padding:13px 16px;border-bottom:1px solid #f0f3f8}
td{font-size:13.5px;color:var(--ink-2)}
tbody tr:hover{background:#fafcff}
tr:last-child td{border-bottom:0}
.cell-name{font-weight:600;color:var(--ink)}

/* Pills & Badges (Cobalt + Fresh Mint-Teal) */
.badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--blue-soft);color:var(--blue);display:inline-flex;align-items:center;line-height:1.3}
.badge.green{color:var(--mint-text);background:var(--mint-soft);box-shadow:inset 0 0 0 1px var(--mint-border)}
.badge.red{color:#c92a37;background:#fff0f2}
.badge.amber{color:#9a5804;background:#fff7e6}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #f0f3f8;font-size:13px;color:var(--muted)}
.pagination .toolbar{gap:8px}
.empty{text-align:center;padding:56px 22px;color:#8b95a1;font-size:13.5px;line-height:1.8}
.empty-icon{font-size:30px;margin-bottom:10px;color:#b8c4d9}
.loading{text-align:center;padding:64px;color:var(--muted)}
.error-box{padding:24px;background:#fff5f6;border:1px solid #ffd5dc;border-radius:16px;color:#b42334;line-height:1.8}
.error-box button{margin-top:12px}

/* ---------- Soft Filled Form Controls (Toss / T!kitaka tactile inputs) ---------- */
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:12.5px;font-weight:600;color:var(--ink-2)}
:where(.shell,.auth) .field input,:where(.shell,.auth) .field select,:where(.shell,.auth) .field textarea,:where(.shell,.auth) :is(input,select,textarea){
  border:1.5px solid transparent;
  border-radius:12px;
  min-height:40px;
  font-size:13.5px;
  background:var(--field-bg);
  padding:8px 13px;
  color:var(--ink);
  width:100%;
  transition:background-color .15s,border-color .15s,box-shadow .15s;
}
:where(.shell,.auth) select:not([multiple]):not([size]){
  appearance:none;
  -webkit-appearance:none;
  padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1.2 1.2 5 5l3.8-3.8' fill='none' stroke='%236b7684' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:10px 6px;
}
.shell .card-head select,.shell .toolbar select{width:auto;min-height:36px;padding:6px 32px 6px 13px;font-size:13px;border-radius:10px}
.shell .card-head .search input{min-height:36px;padding:6px 13px;font-size:13.5px}
.shell .card-head .search button{min-height:36px;padding:6px 14px;font-size:13px}
:where(.shell,.auth) :is(input,select,textarea)::placeholder{color:#9aa4b2}
:where(.shell,.auth) :is(input,select,textarea):hover{background-color:#edf1f7}
:where(.shell,.auth) :is(input,select,textarea):focus,:where(.shell,.auth) :is(input,select,textarea):focus-visible{
  outline:0;
  background-color:#ffffff;
  border-color:var(--blue);
  box-shadow:0 0 0 3.5px rgba(59,91,255,.14);
}
.field textarea{min-height:140px;resize:vertical}
.field small{color:#8b95a1;font-size:12px;line-height:1.55}
.form-error{color:#c92a37;background:#fff0f2;border:1px solid #ffd6dc;border-radius:12px;padding:11px 14px;font-size:13px;margin-bottom:16px;line-height:1.5}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

/* ---------- Login / Setup / Activate (Clean Single-Column Korean Cobalt + Mint Card) ---------- */
.auth{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:32px 20px;
  background:#f5f7fb;
}
.auth-card{
  width:min(452px,100%);
  background:#ffffff;
  border-radius:26px;
  padding:10px;
  box-shadow:0 20px 56px rgba(59,91,255,.09),0 2px 10px rgba(25,31,40,.04);
  border:1px solid #eaeef6;
}
.auth-intro{
  background:var(--blue);
  color:#ffffff;
  border-radius:18px;
  padding:24px 26px 26px;
  position:relative;
  overflow:hidden;
}
.auth-top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px;
}
.auth-brand-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  color:#ffffff;
  letter-spacing:-.01em;
}
.auth-brand-dot{
  width:28px;
  height:28px;
  border-radius:9px;
  background:rgba(255,255,255,.2);
  color:#ffffff;
  display:grid;
  place-items:center;
}
.auth-brand-svg{width:15px;height:15px}
.auth-language{width:108px}
.auth-language select{
  min-height:32px!important;
  padding:4px 28px 4px 12px!important;
  border-radius:999px!important;
  background-color:rgba(255,255,255,.18)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1.2 1.2 5 5l3.8-3.8' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border:1px solid rgba(255,255,255,.24)!important;
  font-size:12px!important;
  font-weight:600;
  color:#ffffff!important;
}
.auth-language select:hover{background-color:rgba(255,255,255,.26)!important}
.auth-language select:focus{background-color:rgba(255,255,255,.28)!important;border-color:#ffffff!important;box-shadow:none!important}
.auth-language select option{color:#191f28;background:#ffffff}
.auth-intro h1{
  font-size:19px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.02em;
  margin:0 0 6px;
  color:#ffffff;
  text-wrap:balance;
}
.auth-intro p{
  margin:0;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.84);
}
.auth-main{
  padding:26px 24px 24px;
}
.auth-form{width:100%}
.auth-form h2{
  font-size:22px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0 0 6px;
}
.auth-form .subtitle{font-size:13.5px;color:var(--muted)}
.auth-form form{margin-top:22px}
.auth-form .field{margin-bottom:15px}
.auth-form .field input,.auth-form .field select{min-height:48px;border-radius:13px;font-size:16px;padding:10px 14px}
.auth-form .field select{padding-right:36px}
.auth-form .form-actions{margin-top:18px}
.auth-form button[type=submit]{
  width:100%;
  min-height:48px;
  border-radius:13px;
  font-size:15px;
  font-weight:600;
  background:var(--blue);
  box-shadow:0 8px 20px rgba(59,91,255,.24);
}
.auth-form button[type=submit]:hover:not(:disabled){
  background:var(--blue-hover);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(59,91,255,.3);
}
.auth-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
  padding:11px 14px;
  border-radius:13px;
  background:var(--mint-soft);
  border:1px solid var(--mint-border);
}
.auth-links-hint{font-size:13px;color:var(--ink-2)}
.auth-switch-btn{
  background:#ffffff;
  color:var(--mint-text);
  border:1px solid var(--mint-border);
  border-radius:999px;
  padding:6px 14px;
  font-size:12.5px;
  font-weight:600;
}
.auth-switch-btn:hover:not(:disabled){
  background:var(--mint);
  color:#ffffff;
  border-color:var(--mint);
}
.auth-alt{
  margin-top:14px;
  text-align:center;
}
.auth-alt-link{
  font-size:12.5px;
  font-weight:500;
  color:#8b95a1;
}
.auth-alt-link:hover:not(:disabled){
  color:var(--blue);
}
.auth-foot{
  margin:0;
  font-size:12px;
  color:#9aa4b2;
  text-align:center;
}

/* ---------- Import, Profile, Notices, Dialogs ---------- */
.steps{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}
.step{font-size:12.5px;font-weight:600;color:var(--muted);background:#eef2f7;padding:8px 15px;border-radius:999px}
.step.current{background:var(--mint-soft);color:var(--mint-text);box-shadow:inset 0 0 0 1px var(--mint-border)}
.upload{border:2px dashed #c8d5f5;padding:34px 24px;border-radius:16px;text-align:center;background:#fafcff;margin-bottom:20px}
.upload input{border:0!important;max-width:330px;margin:12px auto;background:none!important;min-height:auto!important;padding:4px!important}
.import-summary{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.profile-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #f0f3f8;font-size:13.5px}
.profile-row span:first-child{color:var(--muted);font-weight:500}
.profile-row span:last-child{text-align:right;overflow-wrap:anywhere;min-width:0;color:var(--ink);font-weight:500}
.notice-item{padding:15px 0;border-bottom:1px solid #f0f3f8;font-size:13.5px;line-height:1.75}
.notice-item:last-child{border:0}
.notice-item small{display:block;color:#8b95a1}
.notice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.notice-heading strong{overflow-wrap:anywhere;color:var(--ink)}
.notice-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;color:var(--ink-2)}
.notice-unread{border-left:3px solid var(--mint);padding-left:14px}
.notification-button{max-width:116px;gap:6px;border-radius:999px;background:#f4f6fa;color:var(--ink-2);border:1px solid var(--border);padding:7px 12px}
.notification-button:hover:not(:disabled){background:var(--blue-soft);color:var(--blue);border-color:#d4deff}
.unread-count{border-radius:999px;background:var(--blue);color:#fff;padding:1px 7px;min-width:22px;font-size:11px;font-variant-numeric:tabular-nums}
.invite-code{font:600 19px ui-monospace,monospace;word-break:break-all;padding:20px;background:var(--blue-soft);border:1px solid #d5e0ff;border-radius:14px;color:#2744d6;margin:16px 0;user-select:all}
.invite-token{font-family:ui-monospace,monospace;user-select:all}

dialog{border:0;border-radius:22px;padding:0;width:min(540px,calc(100vw - 32px));max-height:90vh;box-shadow:0 24px 72px rgba(25,31,40,.22)}
dialog::backdrop{background:rgba(25,31,40,.46);backdrop-filter:blur(5px)}
.modal-head{padding:18px 22px;border-bottom:1px solid #f0f3f8;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:4;background:#ffffff}
.modal-head h2{font-size:18px;font-weight:700;margin:0;color:var(--ink)}
.modal-head button{background:#f3f6fa;color:var(--ink-2);border:0;border-radius:50%;width:32px;height:32px;padding:0}
.modal-head button:hover:not(:disabled){background:#e6ebf3;color:var(--ink)}
.modal-body{padding:22px 24px}
.modal-body .table-wrap{max-height:45vh;overflow:auto}

#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#191f28;color:#fff;border-radius:999px;padding:12px 22px;box-shadow:0 12px 30px rgba(25,31,40,.24);z-index:100;max-width:90vw;display:none;font-size:13.5px;font-weight:500}
[hidden]{display:none!important}
#toast.visible{display:block}
.mobile-menu{display:none;background:#f4f6fa;color:var(--ink);font-size:20px;padding:6px 10px;border-radius:10px}
.footer-note{font-size:11.5px;color:#9aa4b2;text-align:center;padding:18px 16px 24px;margin-top:auto}
.muted{color:var(--muted)}

/* ---------- Roster Bulk, PWA & Offline ---------- */
.roster-check{width:17px;min-width:17px;height:17px;min-height:0;padding:0;accent-color:var(--blue);cursor:pointer}
.selection-label{display:flex;align-items:center;gap:9px;font-size:12px;white-space:normal}
.selection-label[hidden]{display:none}
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;border-bottom:1px solid var(--border);background:#fafcff}
.bulk-toolbar small{flex-basis:100%;line-height:1.6}
.backup-hash{max-width:220px;white-space:normal;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:11px;user-select:all;cursor:text}
.connection-banner{background:#fff7e6;color:#9a5804;border-bottom:1px solid #fde3b4;padding:11px 20px;text-align:center;font-size:13px;font-weight:500;position:sticky;top:0;z-index:50}
.pwa-tools{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px 14px}
body:has(.shell) .pwa-tools{margin-left:244px}
.pwa-tools:has(>button[hidden]:only-child){display:none}
.ios-install-hint{font-size:12px;color:var(--ink-2);line-height:1.6;margin:0}
.offline-page{max-width:520px;margin:14vh auto;padding:32px;background:#fff;border-radius:24px;box-shadow:var(--shadow-card);line-height:1.8}
.offline-page h1{font-size:24px;margin-top:0}

/* ---------- v0.4 Reports & Charts ---------- */
.readonly-filters{max-width:100%}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px 16px;align-items:end}
.filter-grid .field{min-width:0;margin-bottom:0}
.filter-grid input,.filter-grid select{min-width:0;max-width:100%}
.filter-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 14px}
.report-meta{margin:0 0 18px;overflow-wrap:anywhere}
.report-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.report-chart{margin:0;padding:24px;min-width:0}
.report-chart figcaption{font-weight:700;font-size:14px;margin-bottom:20px;color:var(--ink)}
.chart-row{display:grid;grid-template-columns:60px minmax(0,1fr) minmax(35px,auto);align-items:center;gap:10px;margin:16px 0;font-size:13px}
.chart-track{height:12px;background:#eef2f7;border-radius:999px;overflow:hidden}
.chart-bar{height:100%;background:var(--blue);border-radius:999px}
.chart-active{background:var(--mint)}.chart-pending{background:#f59e0b}.chart-dormant{background:#8b95a1}.chart-disabled{background:#f04452}
.bar-0{width:0%}.bar-1{width:1%}.bar-2{width:2%}.bar-3{width:3%}.bar-4{width:4%}.bar-5{width:5%}.bar-6{width:6%}.bar-7{width:7%}.bar-8{width:8%}.bar-9{width:9%}.bar-10{width:10%}.bar-11{width:11%}.bar-12{width:12%}.bar-13{width:13%}.bar-14{width:14%}.bar-15{width:15%}.bar-16{width:16%}.bar-17{width:17%}.bar-18{width:18%}.bar-19{width:19%}.bar-20{width:20%}.bar-21{width:21%}.bar-22{width:22%}.bar-23{width:23%}.bar-24{width:24%}.bar-25{width:25%}.bar-26{width:26%}.bar-27{width:27%}.bar-28{width:28%}.bar-29{width:29%}.bar-30{width:30%}.bar-31{width:31%}.bar-32{width:32%}.bar-33{width:33%}.bar-34{width:34%}.bar-35{width:35%}.bar-36{width:36%}.bar-37{width:37%}.bar-38{width:38%}.bar-39{width:39%}.bar-40{width:40%}.bar-41{width:41%}.bar-42{width:42%}.bar-43{width:43%}.bar-44{width:44%}.bar-45{width:45%}.bar-46{width:46%}.bar-47{width:47%}.bar-48{width:48%}.bar-49{width:49%}.bar-50{width:50%}.bar-51{width:51%}.bar-52{width:52%}.bar-53{width:53%}.bar-54{width:54%}.bar-55{width:55%}.bar-56{width:56%}.bar-57{width:57%}.bar-58{width:58%}.bar-59{width:59%}.bar-60{width:60%}.bar-61{width:61%}.bar-62{width:62%}.bar-63{width:63%}.bar-64{width:64%}.bar-65{width:65%}.bar-66{width:66%}.bar-67{width:67%}.bar-68{width:68%}.bar-69{width:69%}.bar-70{width:70%}.bar-71{width:71%}.bar-72{width:72%}.bar-73{width:73%}.bar-74{width:74%}.bar-75{width:75%}.bar-76{width:76%}.bar-77{width:77%}.bar-78{width:78%}.bar-79{width:79%}.bar-80{width:80%}.bar-81{width:81%}.bar-82{width:82%}.bar-83{width:83%}.bar-84{width:84%}.bar-85{width:85%}.bar-86{width:86%}.bar-87{width:87%}.bar-88{width:88%}.bar-89{width:89%}.bar-90{width:90%}.bar-91{width:91%}.bar-92{width:92%}.bar-93{width:93%}.bar-94{width:94%}.bar-95{width:95%}.bar-96{width:96%}.bar-97{width:97%}.bar-98{width:98%}.bar-99{width:99%}.bar-100{width:100%}

/* ---------- v0.5+ Accounts, Posts, Monitor, Groups ---------- */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric{padding:18px;border:1px solid var(--border);border-radius:16px;background:#fff;min-width:0}
.metric-label{font-size:12px;color:var(--muted);font-weight:600}
.metric-value{font-size:26px;font-weight:700;margin-top:8px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric-rate .metric-value{color:var(--blue)}
.metric-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{font-size:12px;font-weight:600;padding:5px 11px;border-radius:999px;background:var(--blue-soft);color:var(--blue);white-space:nowrap}
.chip.amber{background:#fff7e6;color:#9a5804}.chip.red{background:#fff0f2;color:#c92a37}.chip.green{background:var(--mint-soft);color:var(--mint-text);box-shadow:inset 0 0 0 1px var(--mint-border)}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px 20px}
.detail-row{display:flex;flex-direction:column;gap:5px;font-size:13.5px;min-width:0}
.detail-row span:first-child{font-size:11.5px;color:var(--muted);font-weight:600}
.detail-row span:last-child{overflow-wrap:anywhere;min-width:0;color:var(--ink)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px 24px;border-bottom:1px solid #f0f3f8;background:#fafcff}
.tab{border:1px solid var(--border);background:#fff;color:var(--ink-2);padding:8px 16px;border-radius:999px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}
.tab:hover:not(.active){background:#f4f7fc;border-color:#d4deff}
.tab.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(59,91,255,.24)}
.wrap-cell{max-width:340px;white-space:normal;overflow-wrap:anywhere}
.cell-stack{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:280px}
.cell-stack small{overflow-wrap:anywhere}
.cell-rate{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.check-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:8px 16px;margin-bottom:18px;max-height:34vh;overflow:auto}
.check-row{display:flex;align-items:center;gap:9px;font-size:13px;white-space:normal;min-width:0}
.inline-search{display:flex;gap:8px;min-width:0;margin-top:8px}
.inline-search input{min-width:0;flex:1 1 auto;width:auto}
.text-link{color:var(--blue);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.text-link:hover{text-decoration:underline}

.task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;margin-bottom:24px}
.task-card{display:flex;flex-direction:column;gap:12px;padding:20px;background:#fff;border:1px solid var(--border);border-radius:18px;min-width:0;box-shadow:var(--shadow-card)}
.task-card-overdue{border-color:#fcc2c9;box-shadow:inset 0 0 0 1.5px #fff0f2}
.task-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.task-card-head h2{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere;min-width:0;color:var(--ink)}
.task-card-meta{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.task-due{font-weight:700;color:var(--blue)}
.task-card-overdue .task-due{color:#c92a37}
.task-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto}

.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}
.stat-grid .stat{border-left:4px solid var(--blue)}
.stat-grid .stat.green{border-left-color:var(--mint)}
.stat-grid .stat.amber{border-left-color:#f59e0b}
.mon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px}
.mon-card{border:1px solid var(--border);border-radius:18px;padding:18px;background:#fff;box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:12px}
.mon-card.empty-post{border-color:#fbd38d;background:#fffdf7}
.mon-card-head{display:flex;align-items:center;gap:10px}
.mon-card-head strong{display:block;font-size:14px;color:var(--ink)}
.mon-card-head small{color:var(--muted);font-size:11.5px}
.mon-avatar{position:relative;width:36px;height:36px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:700;flex-shrink:0}
.mon-avatar.big{width:48px;height:48px;font-size:19px}
.mon-avatar-badge{position:absolute;right:-5px;bottom:-5px;font-style:normal;font-size:9px;font-weight:700;background:var(--ink);color:#fff;border-radius:6px;padding:1px 4px;letter-spacing:.4px}
.mon-code{margin-left:auto;font:600 11px ui-monospace,monospace;color:#7b8794;background:#f4f6fa;border-radius:6px;padding:3px 8px}
.mon-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mon-metrics small{display:block;color:#8b95a1;font-size:11px}
.mon-metrics strong{font-size:16px;color:var(--ink)}
.mon-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.mon-detail-head{display:flex;align-items:center;gap:14px;justify-content:space-between}

.post-list{display:flex;flex-direction:column;gap:14px;padding:16px 22px}
.post-card{border:1px solid var(--border);border-radius:16px;padding:18px 20px;background:#fafcff;box-shadow:none;display:flex;flex-direction:column;gap:10px;transition:border-color .15s,background-color .15s}
.post-card:hover{background:#ffffff;border-color:#d4deff}
.post-card-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.post-card-head .muted{font-size:12px}
.post-card-body{margin:0;font-size:14.5px;font-weight:600;line-height:1.65;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-card-link{font-size:12.5px;color:var(--blue);text-decoration:none;overflow-wrap:anywhere}
.post-card-link:hover{text-decoration:underline}
.post-card-groups{display:flex;gap:6px;flex-wrap:wrap}
.post-card-foot{display:flex;align-items:center;gap:20px;border-top:1px solid #eef2f8;padding-top:14px;flex-wrap:wrap}
.post-card-metrics{display:flex;gap:20px}
.post-card-metrics small{display:block;color:#8b95a1;font-size:11px}
.post-card-metrics strong{font-size:18px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.post-card-progress{flex:1;min-width:180px;display:flex;flex-direction:column;gap:6px}
.post-progress{height:8px;background:#e8edf5;border-radius:999px;overflow:hidden;display:flex}
.post-progress span{height:100%;background:var(--mint);border-radius:999px}

.group-layout{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(300px,1fr);gap:20px;align-items:start}
.group-layout th,.group-layout td{padding:12px 13px}
.group-panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:0;overflow:hidden}
.group-panel>p{margin:0;padding:24px 22px;font-size:13.5px;line-height:1.65}
.group-panel .card-body{padding:20px 22px}
.group-panel h3{font-size:14px;margin:18px 0 10px;color:var(--ink)}
.group-panel .info-banner{margin:14px 0 0;font-size:12px}

/* ---------- Responsive ---------- */
@media(min-width:1500px){.content{padding-top:34px}.stat{padding:26px}}
@media(max-width:1100px){
  .sidebar{width:216px;padding:20px 12px}
  .workspace{margin-left:216px;width:calc(100% - 216px)}
  body:has(.shell) .pwa-tools{margin-left:216px}
  .content{padding:24px 22px}
  .topbar{padding:12px 22px}
  .stats{gap:12px}
  .stat{padding:18px}
  .grid-two{grid-template-columns:1fr}
  .top-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}
  .top-actions .user-chip{min-width:0}
  .user-detail{max-width:110px;min-width:0}
}
@media(max-width:1000px){.group-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
  .sidebar{transform:translateX(-100%);transition:transform .2s;width:248px;box-shadow:12px 0 40px rgba(25,31,40,.14)}
  .sidebar.open{transform:translateX(0)}
  .workspace{margin:0;width:100%}
  body:has(.shell) .pwa-tools{margin-left:0}
  .topbar{padding:12px 16px;gap:10px}
  .mobile-menu{display:inline-flex}
  .breadcrumb{display:none}
  .top-actions{flex:1 1 220px;gap:8px;min-width:0;justify-content:flex-end}
  .top-actions select{flex:0 0 104px;width:104px;padding:5px 26px 5px 11px!important}
  .top-actions .user-chip{min-width:0;flex-shrink:1}
  .user-chip .user-detail{display:none}
  .notification-button{padding:6px 10px;max-width:96px}
  .top-actions .link{font-size:12px}
  .content{padding:20px 16px}
  .page-title{align-items:flex-start;gap:12px}
  .page-title h1{font-size:22px}
  .page-title>button{font-size:12.5px;padding:9px 13px}
  .stats{grid-template-columns:repeat(2,1fr);gap:12px}
  .stat{padding:16px 15px}
  .stat-value{font-size:27px}
  .stat-icon{width:32px;height:32px;font-size:16px}
  .card-head{padding:16px 18px;flex-wrap:wrap}
  .card-body{padding:18px}
  .search{min-width:100%}
  th,td{padding:13px 16px}
  .pagination{padding:14px 16px;flex-wrap:wrap}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tabs{padding:12px 16px}
  .tab{flex:1 1 auto}
  .detail-grid{grid-template-columns:minmax(0,1fr)}
  .inline-search{flex-wrap:wrap}
  .inline-search button{width:100%}
  .stat-grid{grid-template-columns:1fr}
  .report-summary{grid-template-columns:minmax(0,1fr)}
  .report-chart{padding:20px}
  .filter-grid{grid-template-columns:minmax(0,1fr)}
  .filter-actions button{white-space:normal}
  .report-summary .table-wrap{border-bottom:1px solid var(--border)}
  .post-card-foot{gap:12px}
  .post-card-metrics{gap:14px}
  .form-grid{grid-template-columns:1fr;gap:0}
  .quick{padding:15px;font-size:13px}
  .form-actions{flex-wrap:wrap}
  .notice-heading{flex-wrap:wrap}
  .info-banner{font-size:12.5px}

  /* Prevent iOS Safari auto-zoom on mobile inputs (requires >= 16px) */
  :where(.shell,.auth,dialog) .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
  :where(.shell,.auth) .search input{font-size:16px!important}
  /* Mobile Auth: Crisp Korean App Sheet (Cobalt Header + Rounded White Sheet) */
  .auth{display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:0;background:#ffffff}
  .auth-card{width:100%;flex:1;padding:0;border-radius:0;box-shadow:none;border:0}
  .auth-intro{border-radius:0;padding:22px 22px 46px}
  .auth-intro h1{font-size:18px}
  .auth-main{padding:26px 22px 28px;margin-top:-24px;background:#ffffff;border-radius:26px 26px 0 0;position:relative;z-index:2}
  .auth-form h2{font-size:22px}
  .auth-links{flex-wrap:wrap}
  .auth-foot{padding:12px 16px 24px}
}
@media(max-width:430px){
  .metric{padding:14px}
  .metric-value{font-size:22px}
  .task-list{grid-template-columns:minmax(0,1fr)}
  .task-card{padding:16px}
  .task-card-head h2{font-size:16px}
  .task-card-meta{font-size:14px;gap:8px}
  .member-tabs .tab{font-size:14px;padding:11px 12px;min-height:44px}
  .task-action{width:100%;min-height:48px;font-size:15px}
  .detail-row{font-size:14px}
  .chip{white-space:normal}
}
@media(max-width:380px){
  .top-actions{gap:7px;flex-basis:190px}
  .top-actions .user-chip{display:none}
  .notification-button{font-size:11px}
  .topbar{padding:10px}
  .content{padding-left:12px;padding-right:12px}
}

/* ---------- Push Notification Opt-In Popup ---------- */
.push-prompt{position:fixed;right:20px;bottom:20px;width:min(368px,calc(100vw - 32px));background:#ffffff;border:1px solid var(--border);border-radius:22px;padding:18px 18px 16px;box-shadow:0 20px 50px rgba(25,31,40,.14),0 2px 8px rgba(25,31,40,.06);z-index:18;display:flex;flex-direction:column;gap:14px;animation:push-prompt-in .24s cubic-bezier(.22,1,.36,1)}
.push-prompt[hidden]{display:none}
@keyframes push-prompt-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.push-prompt-head{display:flex;align-items:flex-start;gap:12px}
.push-prompt-icon{width:44px;height:44px;border-radius:14px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0}
.push-prompt-icon svg{width:22px;height:22px}
.push-prompt-copy{flex:1;min-width:0}
.push-prompt-copy strong{display:block;font-size:16px;font-weight:700;color:var(--ink);line-height:1.35;letter-spacing:-.01em}
.push-prompt-copy p{margin:4px 0 0;font-size:13.5px;color:#4e5968;line-height:1.58}
.push-prompt-close{width:30px;height:30px;padding:0;margin:-4px -6px 0 0;border-radius:50%;background:transparent;color:#8b95a1;font-size:20px;line-height:1;display:grid;place-items:center;flex-shrink:0;box-shadow:none}
.push-prompt-close:hover{background:#f2f5fb;color:var(--ink);transform:none;box-shadow:none}
.push-prompt-note{margin:0;padding:10px 12px;border-radius:12px;background:#fff5f5;color:#c92a2a;font-size:13px;line-height:1.5}
.push-prompt-note[hidden]{display:none}
.push-prompt-actions{display:flex;align-items:center;gap:10px}
.push-prompt-primary{flex:1.4;min-height:44px;padding:10px 16px;border-radius:13px;background:linear-gradient(135deg,#3b5bff,#2c49eb);color:#ffffff;font-size:15px;font-weight:700;border:0;box-shadow:0 6px 16px rgba(59,91,255,.26)}
.push-prompt-primary:hover{background:linear-gradient(135deg,#2c49eb,#233cd1);box-shadow:0 8px 20px rgba(59,91,255,.32)}
.push-prompt-primary[hidden]{display:none}
.push-prompt-secondary{flex:1;min-height:44px;padding:10px 14px;border-radius:13px;background:#f2f5fb;color:#4e5968;font-size:14px;font-weight:600;border:0;box-shadow:none}
.push-prompt-secondary:hover{background:#e7ecf6;color:var(--ink);transform:none;box-shadow:none}
@media(max-width:760px){
  .push-prompt{left:14px;right:14px;width:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:16px 16px 14px;border-radius:20px}
  body:has(.biz-shell) .push-prompt{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .push-prompt-primary,.push-prompt-secondary{min-height:46px;font-size:15px}
}
@media(prefers-color-scheme:dark){
  body:has(.biz-shell) .push-prompt{background:#1c2230;border-color:rgba(255,255,255,.12);box-shadow:0 20px 50px rgba(0,0,0,.45)}
  body:has(.biz-shell) .push-prompt-copy strong{color:#f2f5fb}
  body:has(.biz-shell) .push-prompt-copy p{color:#b0bac9}
  body:has(.biz-shell) .push-prompt-icon{background:rgba(59,91,255,.22);color:#8aa2ff}
  body:has(.biz-shell) .push-prompt-secondary{background:rgba(255,255,255,.08);color:#d7e0ed}
  body:has(.biz-shell) .push-prompt-close{color:#9aa5b6}
}

/* ---------- Send Notification Dialog ---------- */
.notify-user-box[hidden]{display:none}
.notify-user-search{margin-bottom:8px}
.notify-user-list{max-height:150px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;background:#fafcff;padding:6px;display:flex;flex-direction:column;gap:4px}
.notify-user-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;cursor:pointer;font-size:14px;color:var(--ink);transition:background .12s}
.notify-user-row:hover{background:#eef3ff}
.notify-user-row input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:var(--blue);flex-shrink:0}
.notify-user-name{font-weight:600;color:var(--ink);flex-shrink:0}
.notify-user-row small{color:var(--muted);font-size:12px;margin-left:auto;text-align:right}
.notify-user-count{display:block;margin-top:6px;color:var(--blue);font-size:12.5px;font-weight:600}
.notify-sent-meta{gap:10px}

/* ---------- Beginner Onboarding Tutorial & Simulated Task ---------- */
.guide-wrap{display:flex;flex-direction:column;gap:16px}
.guide-progress{display:flex;flex-direction:column;gap:8px}
.guide-progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.guide-step-pill{font-size:12.5px;font-weight:700;color:var(--blue);background:var(--blue-soft);padding:4px 10px;border-radius:999px}
.guide-step-label{font-size:13.5px;font-weight:600;color:#4e5968}
.guide-bar{height:7px;background:#eaf0fa;border-radius:999px;overflow:hidden}
.guide-bar span{display:block;height:100%;background:linear-gradient(90deg,#3b5bff,#2ec4b6);border-radius:999px;transition:width .25s ease}
.guide-body{display:flex;flex-direction:column;gap:14px}
.guide-hero{background:linear-gradient(135deg,#3b5bff,#2b48e8);color:#ffffff;border-radius:18px;padding:18px 20px}
.guide-hero strong{display:block;font-size:18px;font-weight:700;line-height:1.35}
.guide-hero p{margin:6px 0 0;font-size:14px;line-height:1.6;color:rgba(255,255,255,.92)}
.guide-steps{display:flex;flex-direction:column;gap:10px}
.guide-step-card{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;border-radius:14px;border:1px solid var(--border);background:#fafcff}
.guide-step-num{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:14px;font-weight:700;display:grid;place-items:center;flex-shrink:0;margin-top:1px}
.guide-step-text strong{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.guide-step-text p{margin:3px 0 0;font-size:13.5px;line-height:1.58;color:#4e5968}
.guide-lead{margin:0;font-size:14.5px;line-height:1.6;color:#333d4b;font-weight:500}
.guide-sim-card{border:1.5px solid #d7e1ff;border-radius:16px;padding:16px;background:#ffffff;box-shadow:0 8px 22px rgba(59,91,255,.07);display:flex;flex-direction:column;gap:10px}
.guide-sim-card.is-done{border-color:#a8ebd8;background:#f4fdf9;box-shadow:none}
.guide-sim-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.guide-sim-due{margin-left:auto;font-size:12px;font-weight:600;color:#4e5968;background:#f2f5fb;padding:3px 9px;border-radius:999px}
.guide-sim-card h3{margin:0;font-size:16px;font-weight:700;color:var(--ink);line-height:1.4}
.guide-sim-desc{margin:0;font-size:14px;line-height:1.6;color:#4e5968}
.guide-sim-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12.5px;color:#6b7684;overflow-wrap:anywhere}
.guide-sim-btns{display:grid;grid-template-columns:1fr 1.25fr;gap:10px;padding-top:10px;border-top:1px solid #eef2f8}
.guide-sim-btns button{min-height:44px;font-size:14.5px;font-weight:600;border-radius:999px}
.guide-sim-open{background:#f3f6fc;color:#191f28;border:1px solid #dde5f3;box-shadow:none}
.guide-sim-open:hover{background:#e9effb;color:#191f28;transform:none;box-shadow:none}
.guide-sim-open.is-done{background:#e8fbf4;color:#0c7a5c;border-color:#9fe5d1}
.guide-link-list{display:flex;flex-direction:column;gap:10px;padding-top:6px}
.guide-link-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:14px;background:#f4f7ff;border:1.5px solid #d5e1ff;color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;transition:background .15s,border-color .15s}
.guide-link-btn:hover{background:#e9f0ff;border-color:#9db6ff;text-decoration:none}
.guide-link-btn.is-done{background:#e8fbf4;border-color:#9fe5d1;color:#0c7a5c}
.guide-link-plat{font-weight:700;color:var(--ink)}
.guide-link-btn.is-done .guide-link-plat{color:#0c7a5c}
.guide-link-cta{font-size:13.5px;font-weight:700;color:var(--blue);white-space:nowrap}
.guide-link-btn.is-done .guide-link-cta{color:#0c7a5c}
.guide-banner-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.guide-banner-link{display:inline-flex;align-items:center;gap:4px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);color:#ffffff;font-size:13.5px;font-weight:600;text-decoration:none;transition:background .15s}
.guide-banner-link:hover{background:rgba(255,255,255,.28);color:#ffffff;text-decoration:none}

/* ---------- Auth Page Android APK Download Card ---------- */
.auth-apk-card{margin-top:18px;padding:15px 16px;border-radius:16px;background:linear-gradient(135deg,#f1fbf8,#f2f6ff);border:1.5px solid #c5ece0;display:flex;flex-direction:column;gap:11px}
.auth-apk-card.is-android{border-color:#2ec4b6;box-shadow:0 8px 20px rgba(46,196,182,.14)}
.auth-apk-copy strong{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.auth-apk-copy p{margin:4px 0 0;font-size:13px;line-height:1.55;color:#4e5968}
.auth-apk-btn{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;background:linear-gradient(135deg,#18a999,#2ec4b6);color:#ffffff;font-size:15px;font-weight:700;text-decoration:none;box-shadow:0 6px 16px rgba(24,169,153,.24);transition:transform .12s,box-shadow .15s}
.auth-apk-btn:hover{color:#ffffff;text-decoration:none;box-shadow:0 8px 20px rgba(24,169,153,.32)}
@media(max-width:760px){
  .auth-apk-btn{min-height:46px;font-size:15.5px}
}
.guide-sim-post{border:1px solid #d5e6ff;border-radius:14px;padding:14px 16px;background:#f5f8ff;display:flex;flex-direction:column;gap:10px}
.guide-sim-post-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.guide-sim-post-head strong{font-size:14px;color:var(--blue)}
.guide-sim-post-head small{font-size:12px;color:#6b7684}
.guide-sim-post>p{margin:0;font-size:14px;line-height:1.6;color:var(--ink)}
.guide-sim-post button{min-height:44px;font-size:14.5px}
.guide-btn-done{background:#e7faf4!important;color:#0e7a5d!important;border:1px solid #9fe5d1!important}
.guide-tip{margin:0;padding:10px 13px;border-radius:12px;background:#f4f7fc;color:#4e5968;font-size:13.5px;line-height:1.55}
.guide-tip-ok{margin:0;padding:10px 13px;border-radius:12px;background:#e8fbf4;color:#0c7a5c;font-size:13.5px;font-weight:600;line-height:1.55}
.guide-form-box{display:flex;flex-direction:column;gap:6px}
.guide-input{font-size:16px!important}
.guide-fill-row{margin-top:8px}
.guide-error{margin:4px 0 0;color:#c92a2a;font-size:13.5px;font-weight:600}
.guide-error[hidden]{display:none}
.guide-done-card{text-align:center;padding:18px 16px;border-radius:18px;background:linear-gradient(135deg,#ecfdf6,#eef4ff);border:1px solid #cdeee0;display:flex;flex-direction:column;align-items:center;gap:8px}
.guide-done-badge{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#2ec4b6,#18a999);color:#fff;font-size:26px;font-weight:800;display:grid;place-items:center;box-shadow:0 8px 20px rgba(46,196,182,.28)}
.guide-done-card h3{margin:4px 0 0;font-size:18px;font-weight:700;color:var(--ink)}
.guide-done-card p{margin:0;font-size:14px;line-height:1.6;color:#4e5968;max-width:420px}
.guide-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 0 2px;border-top:1px solid var(--border);position:sticky;bottom:0;background:#ffffff}
.guide-actions button{min-height:44px;font-size:15px}
@media(max-width:760px){
  .guide-actions{flex-direction:column-reverse;align-items:stretch}
  .guide-actions button{width:100%;min-height:46px}
  .guide-sim-btns button,.guide-sim-post button{width:100%;min-height:46px}
}
.guide-banner{margin:14px 0 16px;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#3b5bff,#2c49eb);color:#ffffff;box-shadow:0 12px 28px rgba(59,91,255,.22);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.guide-banner-copy{flex:1 1 260px;min-width:0}
.guide-banner-tag{display:inline-block;padding:3px 10px;border-radius:999px;background:rgba(46,196,182,.26);color:#d7fff9;font-size:12px;font-weight:700;margin-bottom:6px}
.guide-banner-copy strong{display:block;font-size:17px;font-weight:700;line-height:1.35;color:#ffffff}
.guide-banner-copy p{margin:5px 0 0;font-size:13.5px;line-height:1.55;color:rgba(255,255,255,.9)}
.guide-banner-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.guide-banner-cta{min-height:44px;padding:10px 18px;border-radius:13px;background:#ffffff;color:#2c49eb;font-size:15px;font-weight:700;border:0;box-shadow:0 6px 16px rgba(16,28,72,.16)}
.guide-banner-cta:hover{background:#f3f6ff;color:#233cd1}
.guide-banner-skip{min-height:44px;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.16);color:#ffffff;font-size:13.5px;font-weight:600;border:0;box-shadow:none}
.guide-banner-skip:hover{background:rgba(255,255,255,.24);color:#ffffff;transform:none;box-shadow:none}
@media(max-width:760px){
  .guide-banner{padding:16px;border-radius:18px;gap:12px}
  .guide-banner-actions{width:100%;flex-direction:column;align-items:stretch}
  .guide-banner-cta,.guide-banner-skip{width:100%;min-height:46px}
}
.survey-share-card{padding:18px 20px}
.survey-share-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.survey-link-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 12px}
.survey-link-input{flex:1 1 280px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px!important;background:#f4f7fc!important}
.survey-stats-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
a.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;border-radius:10px;padding:7px 14px;font-size:13px;font-weight:600;border:1px solid var(--border);background:#ffffff;color:var(--ink)}
a.button:hover{background:#f4f6fb}
