@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
:root{
  --bg:#f3f6fb;
  --panel:#ffffff;
  --text:#14253a;
  --muted:#64748b;
  --line:#dde6f2;
  --sidebar:#172538;
  --sidebar-2:#22344c;
  --blue:#2563eb;
  --green:#16a34a;
  --yellow:#d97706;
  --red:#dc2626;
  --nav-shadow:0 16px 38px rgba(15,23,42,.18);
  --shadow:0 14px 34px rgba(15,23,42,.08);
  --radius:20px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:'Prompt',sans-serif}
a{text-decoration:none;color:inherit}
body{min-height:100vh}
.layout{display:grid;grid-template-columns:290px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:24px;background:linear-gradient(180deg,var(--sidebar),var(--sidebar-2));color:#fff;box-shadow:var(--nav-shadow);overflow:auto;z-index:30}
.mobile-overlay{display:none}
.brand{display:flex;gap:14px;align-items:center;font-size:1.18rem;font-weight:700;margin-bottom:24px}
.brand small{display:block;font-size:.78rem;font-weight:400;opacity:.72;margin-top:2px}
.brand-badge{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:1.35rem}
.nav-section-title{font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;opacity:.6;margin:22px 0 10px}
.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:15px;color:#d8e6ff;margin-bottom:7px;font-weight:500}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.12);color:#fff}
.nav-pill{margin-left:auto;background:#fff;color:var(--red);font-size:.75rem;padding:2px 8px;border-radius:999px;font-weight:700}
.content{padding:26px}
.mobile-top{display:none}
.topbar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:22px}
.top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.page-title h1{margin:0;font-size:1.95rem;line-height:1.1}
.page-title p{margin:7px 0 0;color:var(--muted)}
.user-chip,.card,.stat,.table-wrap,.btn,.input,.select,.textarea,.search-input,.kanban-card,.kanban-col{border-radius:18px}
.user-chip{padding:11px 14px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;font-weight:500}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.stat,.card,.table-wrap,.auth-card,.install-card,.kanban-col{background:var(--panel);box-shadow:var(--shadow)}
.stat,.card,.kanban-col{padding:20px}
.stat-top,.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.stat-label{color:var(--muted);font-size:.95rem}
.stat-value{font-size:2rem;font-weight:700;margin-top:8px}
.card h3{margin:0 0 14px}
.card h4{margin:0 0 12px}
.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse;background:#fff}
.table th,.table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table th{font-size:.92rem;color:#475569;background:#f8fbff;position:sticky;top:0}
.badge{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 10px;border-radius:999px;font-size:.78rem;font-weight:700;line-height:1.1;white-space:nowrap}.badge i{font-size:.92em;line-height:1}.badge.count-badge{min-width:0;padding-inline:9px}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.yellow{background:#fef3c7;color:#92400e}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 15px;border:0;cursor:pointer;font-weight:600}
.btn-sm{padding:9px 12px;border-radius:14px}
.btn-primary{background:var(--blue);color:#fff}.btn-success{background:var(--green);color:#fff}.btn-danger{background:var(--red);color:#fff}.btn-light{background:#fff;color:var(--text);box-shadow:var(--shadow)}.btn-warning{background:var(--yellow);color:#fff}
.btn-outline{background:transparent;border:1px solid var(--line);color:var(--text)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-group{display:flex;flex-direction:column;gap:8px}
label{font-weight:500}
.input,.select,.textarea,.search-input{width:100%;border:1px solid var(--line);background:#fff;padding:13px 14px;font:inherit}
.textarea{min-height:120px;resize:vertical}
.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.search-input{min-width:220px}
.notice{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:14px;margin-bottom:14px;font-weight:500}.notice.success{background:#dcfce7;color:#166534}.notice.error{background:#fee2e2;color:#991b1b}

.notice-stack{position:fixed;top:18px;right:18px;display:grid;gap:12px;z-index:1700;pointer-events:none;max-width:min(420px,calc(100vw - 24px))}
.notice-stack:empty{display:none}
.notice{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:12px;
  min-width:min(360px,calc(100vw - 32px));
  max-width:min(420px,calc(100vw - 24px));
  padding:14px 16px;
  margin:0;
  pointer-events:auto;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 18px 36px rgba(15,23,42,.12);
  backdrop-filter:blur(12px);
  opacity:0;
  transform:translateY(-10px) translateX(10px) scale(.98);
  animation:notice-in .28s cubic-bezier(.22,1,.36,1) forwards;
}
.notice i:first-child{font-size:1.05rem;line-height:1.2;margin-top:1px}
.notice span{line-height:1.55}
.notice.success{background:rgba(220,252,231,.96);color:#166534}
.notice.error{background:rgba(254,226,226,.96);color:#991b1b}
.notice-close{
  appearance:none;
  border:none;
  background:transparent;
  color:inherit;
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:.72;
}
.notice-close:hover{background:rgba(255,255,255,.42);opacity:1}
.notice.is-hiding{animation:notice-out .24s ease forwards}
@keyframes notice-in{from{opacity:0;transform:translateY(-10px) translateX(10px) scale(.98)}to{opacity:1;transform:translateY(0) translateX(0) scale(1)}}
@keyframes notice-out{from{opacity:1;transform:translateY(0) translateX(0) scale(1)}to{opacity:0;transform:translateY(-8px) translateX(8px) scale(.98)}}
@media (max-width:760px){
  .notice-stack{top:12px;right:12px;left:12px;max-width:none}
  .notice{min-width:0;max-width:none;width:100%}
}
.auth-wrap,.install-wrap{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(180deg,#eaf1fb,#f3f6fb)}
.auth-card,.install-card{width:min(1160px,100%);padding:28px}
.auth-grid,.install-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:22px}
.hero-panel{background:linear-gradient(180deg,var(--sidebar),#25415f);color:#fff;border-radius:24px;padding:28px;min-height:100%}
.hero-panel ul{padding-left:20px}.mini-card{background:rgba(255,255,255,.08);padding:14px;border-radius:16px;margin-top:14px}
.kv{display:grid;grid-template-columns:220px 1fr;gap:10px;padding:11px 0;border-bottom:1px dashed var(--line)}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.priority-dot,.status-dot{width:10px;height:10px;border-radius:999px;display:inline-block}
.dot-low{background:#93c5fd}.dot-medium{background:#facc15}.dot-high{background:#fb923c}.dot-urgent{background:#dc2626}
.dot-todo{background:#94a3b8}.dot-in_progress{background:#2563eb}.dot-review{background:#d97706}.dot-done{background:#16a34a}
.list-clean{display:grid;gap:12px}
.item-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px dashed var(--line)}
.calendar-list{display:grid;gap:12px}.event-item,.kanban-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.footer-note{margin-top:18px;color:var(--muted);font-size:.92rem;text-align:center}
.empty-state{padding:26px 18px;text-align:center;color:var(--muted)}
.kanban-wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:start}
.kanban-col h3{margin:0 0 14px}.kanban-stack{display:grid;gap:12px}.kanban-card small{display:block;color:var(--muted);margin-top:6px}
.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.attach-list{display:grid;gap:10px;margin-top:14px}.attach-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}.day-box{min-height:116px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff}.day-box.today{border-color:var(--blue);box-shadow:inset 0 0 0 1px rgba(37,99,235,.1)}
@media (max-width:1200px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr 1fr}.layout{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:.22s ease}.mobile-overlay{position:fixed;inset:0;background:rgba(2,6,23,.38);z-index:20}.mobile-nav-open .sidebar{transform:translateX(0)}.mobile-nav-open .mobile-overlay{display:block}.mobile-top{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(180deg,var(--sidebar),var(--sidebar-2));color:#fff;padding:16px 18px;border-radius:18px;margin-bottom:14px}.mobile-sub{font-size:.8rem;opacity:.7}.content{padding:16px}.auth-grid,.install-grid,.grid-2,.form-grid,.kanban-wrap,.metric-strip{grid-template-columns:1fr}.month-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.grid-4,.grid-3,.month-grid{grid-template-columns:1fr}.topbar{flex-direction:column}.page-title h1{font-size:1.55rem}.kv{grid-template-columns:1fr}.search-input{min-width:100%}.table th,.table td{padding:12px 10px}}

.chart-list{display:grid;gap:14px}
.chart-row{display:grid;gap:8px}
.chart-label{display:flex;justify-content:space-between;gap:12px;align-items:center}
.chart-track{height:12px;background:#e9eff8;border-radius:999px;overflow:hidden}
.chart-fill{height:100%;background:linear-gradient(90deg,var(--blue),#60a5fa);border-radius:999px}
.chart-fill.alt{background:linear-gradient(90deg,var(--yellow),#f59e0b)}
.mini-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.kanban-col.drag-over{outline:2px dashed var(--blue);outline-offset:4px}
.draggable-card{cursor:grab;position:relative}
.draggable-card.dragging{opacity:.55;transform:rotate(1deg)}
.kanban-priority{position:absolute;right:12px;top:12px;width:10px;height:10px;border-radius:999px}
.kanban-priority.low{background:#93c5fd}.kanban-priority.medium{background:#facc15}.kanban-priority.high{background:#fb923c}.kanban-priority.urgent{background:#dc2626}
.mini-event{padding:8px 10px;border-radius:12px;background:#eff6ff;border:1px solid var(--line)}
.mini-event.blue{background:#dbeafe}.mini-event.green{background:#dcfce7}.mini-event.yellow{background:#fef3c7}.mini-event.red{background:#fee2e2}
.api-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.code-chip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem;background:#f8fafc;border:1px solid var(--line);padding:6px 10px;border-radius:12px;display:inline-flex}
@media (max-width:1200px){.api-grid,.mini-stat-grid{grid-template-columns:1fr}}


/* Installer Phase 5 visual refinement */
.install-shell{width:min(1240px,100%);margin:0 auto}
.install-card-enhanced{border-radius:30px;padding:28px;background:rgba(255,255,255,.92);border:1px solid rgba(221,230,242,.9);backdrop-filter:blur(6px)}
.hero-panel-enhanced{position:relative;overflow:hidden;background:
linear-gradient(180deg,rgba(18,35,57,.98),rgba(34,63,96,.96));
box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.hero-panel-enhanced::before{content:"";position:absolute;inset:auto -80px -80px auto;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(37,99,235,.32),transparent 65%)}
.hero-kicker{margin-bottom:14px}
.kicker-badge,.install-step-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;font-weight:600;font-size:.92rem}
.kicker-badge{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);color:#fff}
.install-step-chip{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;white-space:nowrap}
.hero-panel-enhanced h2,.install-form-panel h2{display:flex;align-items:center;gap:10px}
.hero-panel-enhanced h2{font-size:2rem;line-height:1.25;margin:12px 0 12px}
.hero-panel-enhanced p{font-size:1.04rem;line-height:1.7;color:rgba(255,255,255,.88);margin-bottom:22px}
.install-feature-list{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 18px}
.install-feature-item{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}
.feature-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.14);font-size:1.05rem;flex:0 0 auto}
.install-feature-item strong{display:block;font-size:1rem}
.install-feature-item small{display:block;margin-top:4px;color:rgba(255,255,255,.72);font-size:.88rem}
.mini-card-enhanced{padding:18px 18px 14px;border-radius:20px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.08)}
.mini-card-title{display:flex;align-items:center;gap:9px;font-size:1rem;font-weight:700;margin-bottom:10px}
.icon-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.icon-list li{display:flex;align-items:flex-start;gap:10px}
.icon-list li i{margin-top:2px;color:#93c5fd}
.install-form-panel{padding:6px 2px}
.install-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.section-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:600;font-size:.88rem;margin-bottom:8px}
.section-block{border:1px solid var(--line);border-radius:22px;padding:18px;background:linear-gradient(180deg,#fff,#fbfdff);margin-bottom:16px;box-shadow:0 8px 24px rgba(15,23,42,.03)}
.section-title{display:flex;align-items:center;gap:9px;font-size:1rem;font-weight:700;margin-bottom:14px}
.form-group label{display:flex;align-items:center;gap:8px;color:#16304f;font-weight:600}
.form-group-full{grid-column:1/-1}
.input,.select,.textarea,.search-input{border-radius:16px;transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;padding:14px 15px}
.input:focus,.select:focus,.textarea:focus,.search-input:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.12);transform:translateY(-1px)}
.install-submit{margin-top:18px}
.btn-install{min-height:62px;border-radius:18px;padding:12px 18px;display:inline-flex;align-items:center;gap:14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 18px 30px rgba(37,99,235,.28);border:1px solid rgba(255,255,255,.16)}
.btn-install:hover{transform:translateY(-1px);box-shadow:0 22px 38px rgba(37,99,235,.32)}
.btn-install .btn-icon{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:1.05rem}
.btn-install span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
.btn-install small{opacity:.88;font-size:.78rem;font-weight:500;margin-top:4px}
.btn{border:none;cursor:pointer;font-family:'Prompt',sans-serif;font-weight:600;transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease}
@media (max-width: 980px){
  .install-header{flex-direction:column}
}
@media (max-width: 640px){
  .install-card-enhanced{padding:16px;border-radius:24px}
  .hero-panel-enhanced h2{font-size:1.55rem}
  .section-block{padding:14px}
  .btn-install{width:100%;justify-content:center}
}


.auth-card-login{background:transparent;box-shadow:none;padding:0}
.login-hero{display:flex;flex-direction:column;justify-content:space-between;min-height:560px}
.hero-section-title{font-size:2rem;line-height:1.2;font-weight:700;margin:8px 0 12px;letter-spacing:-.02em}
.hero-section-title i{margin-right:10px;color:#f8fafc}
.hero-lead{font-size:1.08rem;line-height:1.7;max-width:620px;margin:0 0 18px}
.mini-card-title{display:flex;align-items:center;gap:10px;font-size:1.1rem;font-weight:700;margin-bottom:14px}
.feature-list{display:grid;gap:12px;list-style:none;padding:0;margin:0}
.feature-list li{display:flex;align-items:flex-start;gap:12px}
.feature-list i{width:20px;margin-top:2px;color:#bfdbfe}
.login-side-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.login-panel{background:var(--panel);border-radius:24px;padding:8px 8px 8px 0;display:flex;flex-direction:column;justify-content:center}
.panel-head h2{margin:0;font-size:2rem;display:flex;align-items:center;gap:10px}
.panel-head p{margin:8px 0 0;color:var(--muted)}
.login-form{display:grid;gap:16px;margin-top:18px}
.login-form label{display:flex;align-items:center;gap:8px;font-weight:600}
.login-form .input{padding:15px 16px;border:1px solid #d6e0ee;border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.login-form .input:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.login-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:.93rem}
.muted-inline{display:flex;align-items:center;gap:8px}
.btn-login{width:100%;justify-content:center;padding:16px 18px;font-size:1rem;font-weight:700;box-shadow:0 18px 34px rgba(37,99,235,.24)}
.login-accounts{margin-top:18px}
.login-accounts .kv strong{display:flex;align-items:center;gap:8px}
@media (max-width: 960px){
  .auth-grid,.install-grid{grid-template-columns:1fr}
  .login-panel{padding:0}
  .login-hero{min-height:auto}
}


/* Login clean layout */
.login-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:32px 20px;
    background:#e9eff7;
}
.login-shell{
    width:min(1040px,100%);
    display:grid;
    grid-template-columns:1.02fr .9fr;
    gap:20px;
    align-items:stretch;
}
.login-hero-clean{
    background:linear-gradient(180deg,var(--sidebar),#244264);
    color:#fff;
    border-radius:30px;
    padding:34px;
    min-height:560px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-shadow:0 18px 45px rgba(15,23,42,.12);
}
.login-brand-row{
    display:flex;
    align-items:center;
    gap:14px;
}
.login-brand-text{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.login-brand-text strong{
    font-size:1.85rem;
    line-height:1;
    font-weight:800;
}
.login-brand-text span{
    font-size:.96rem;
    opacity:.8;
}
.login-hero-copy{
    display:grid;
    gap:14px;
    max-width:520px;
}
.login-hero-copy h1{
    margin:0;
    font-size:3rem;
    line-height:1.08;
    font-weight:800;
}
.login-hero-copy p{
    margin:0;
    font-size:1.15rem;
    line-height:1.7;
    color:rgba(255,255,255,.9);
}
.login-card-clean{
    background:var(--panel);
    border-radius:30px;
    padding:34px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.login-card-head{
    margin-bottom:20px;
}
.login-card-head h2{
    margin:0;
    font-size:2.1rem;
    line-height:1.1;
    font-weight:800;
    color:var(--text);
}
.login-form-clean{
    display:grid;
    gap:18px;
}
.input-clean{
    min-height:60px;
    border-radius:20px;
    border:1px solid #d8e1ef;
    background:#fff;
    padding:16px 18px;
    box-shadow:none;
}
.input-clean:focus{
    outline:none;
    border-color:#9bb7ff;
    box-shadow:0 0 0 4px rgba(59,130,246,.10);
}
.btn-login-clean{
    width:100%;
    justify-content:center;
    min-height:58px;
    border-radius:20px;
    font-size:1rem;
    font-weight:700;
    margin-top:6px;
    box-shadow:0 14px 30px rgba(37,99,235,.22);
}
@media (max-width:980px){
    .login-shell{
        grid-template-columns:1fr;
    }
    .login-hero-clean{
        min-height:260px;
    }
    .login-hero-copy h1{
        font-size:2.4rem;
    }
}
@media (max-width:640px){
    .login-page{
        padding:18px 14px;
    }
    .login-hero-clean,.login-card-clean{
        border-radius:24px;
        padding:24px;
    }
    .login-hero-copy h1{
        font-size:2rem;
    }
    .login-brand-text strong{
        font-size:1.55rem;
    }
}


/* Login beautify */
.login-hero-clean{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.10), transparent 26%),
        radial-gradient(circle at 82% 78%, rgba(96,165,250,.16), transparent 24%),
        linear-gradient(180deg,#132844 0%, #203f67 100%);
    border:1px solid rgba(255,255,255,.06);
}
.login-hero-glow{
    position:absolute;
    right:-80px;
    bottom:-90px;
    width:260px;
    height:260px;
    border-radius:999px;
    background:radial-gradient(circle, rgba(96,165,250,.18) 0%, rgba(96,165,250,0) 70%);
    pointer-events:none;
}
.login-hero-minimal{
    min-height:560px;
    align-items:center;
    justify-content:center;
    padding:42px;
}
.login-hero-minimal::before{
    content:"";
    position:absolute;
    inset:32px;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.01));
    pointer-events:none;
}
.login-hero-center{
    position:relative;
    z-index:2;
    display:grid;
    justify-items:center;
    gap:22px;
    text-align:center;
}
.login-hero-mark{
    width:92px;
    height:92px;
    border-radius:28px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 18px 40px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.08);
    font-size:2.1rem;
    color:#ffffff;
    backdrop-filter:blur(10px);
}
.login-hero-wordmark{
    font-size:4.4rem;
    line-height:1;
    font-weight:800;
    letter-spacing:-.05em;
    color:#ffffff;
    text-shadow:0 10px 28px rgba(15,23,42,.26);
}
.login-brand-row{
    position:relative;
    z-index:2;
}
.login-brand-text{
    gap:0;
}
.login-brand-text strong{
    font-size:1.9rem;
    letter-spacing:-.02em;
}
.login-brand-text span{
    display:none;
}
.login-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.10);
    font-size:.92rem;
    font-weight:600;
}
.login-hero-copy{
    position:relative;
    z-index:2;
    gap:18px;
}
.login-hero-copy h1{
    font-size:4rem;
    letter-spacing:-.03em;
    text-shadow:0 4px 16px rgba(0,0,0,.12);
}
.login-hero-copy p{
    max-width:480px;
    font-size:1.18rem;
    line-height:1.8;
}
.login-card-clean{
    border:1px solid rgba(15,23,42,.05);
    padding:40px;
}
.login-card-head{
    margin-bottom:24px;
}
.login-card-kicker{
    display:inline-block;
    margin-bottom:10px;
    color:var(--blue);
    font-weight:700;
    font-size:.95rem;
}
.login-card-head h2{
    font-size:2.6rem;
    letter-spacing:-.03em;
    margin-bottom:8px;
}
.login-card-head p{
    margin:0;
    color:var(--muted);
    font-size:1rem;
}
.login-form-clean{
    gap:20px;
}
.login-form-clean label{
    color:#0f2747;
    font-size:1rem;
    font-weight:700;
}
.input-clean{
    min-height:64px;
    border-radius:22px;
    padding:18px 20px;
    font-size:1rem;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.input-clean::placeholder{
    color:#94a3b8;
}
.input-clean:focus{
    transform:translateY(-1px);
}
.btn-login-clean{
    min-height:62px;
    border-radius:22px;
    font-size:1.05rem;
    letter-spacing:-.01em;
}
.btn-login-clean i{
    font-size:1.05rem;
}
@media (max-width:980px){
    .login-card-clean{
        padding:28px;
    }
    .login-hero-copy h1{
        font-size:3rem;
    }
}
@media (max-width:640px){
    .login-card-head h2{
        font-size:2.1rem;
    }
    .login-hero-copy h1{
        font-size:2.35rem;
    }
    .login-kicker{
        font-size:.84rem;
        padding:8px 12px;
    }
}
@media (max-width:980px){
    .login-hero-minimal{
        min-height:260px;
        padding:30px;
    }
    .login-hero-wordmark{
        font-size:3.4rem;
    }
    .login-hero-mark{
        width:78px;
        height:78px;
        border-radius:24px;
        font-size:1.8rem;
    }
}
@media (max-width:640px){
    .login-hero-minimal{
        min-height:220px;
        padding:24px;
    }
    .login-hero-minimal::before{
        inset:18px;
        border-radius:22px;
    }
    .login-hero-wordmark{
        font-size:2.6rem;
    }
    .login-hero-mark{
        width:68px;
        height:68px;
        border-radius:22px;
        font-size:1.55rem;
    }
}


.login-hero-copy-balanced{
    align-self:flex-start;
    max-width:440px;
    margin-top:auto;
    gap:16px;
}
.login-hero-copy-balanced h1{
    margin:0;
    display:grid;
    gap:2px;
    line-height:.98;
}
.login-hero-copy-balanced h1 span{
    display:block;
}
.login-hero-copy-balanced p{
    max-width:430px;
    font-size:1.08rem;
    line-height:1.72;
}
@media (max-width:980px){
    .login-hero-copy-balanced{
        max-width:100%;
        margin-top:24px;
    }
    .login-hero-copy-balanced h1{
        gap:4px;
    }
}
@media (max-width:640px){
    .login-hero-copy-balanced p{
        font-size:1rem;
        line-height:1.68;
    }
}

/* Focused 5-screen workflow */
.focus-shell{width:min(760px,100%);margin:0 auto;display:grid;gap:16px}
.focus-shell.narrow{width:min(640px,100%)}
.focus-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.focus-head.compact h2,.focus-head h2{margin:0;font-size:2.1rem;line-height:1.1;letter-spacing:-.03em}
.focus-head p{margin:8px 0 0;color:var(--muted)}
.focus-card{background:#fff;border-radius:24px;padding:18px;box-shadow:var(--shadow);border:1px solid rgba(221,230,242,.8)}
.mini-stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mini-stat-card{background:#fff;border-radius:18px;padding:18px;text-align:center;box-shadow:var(--shadow);border:1px solid rgba(221,230,242,.8)}
.mini-stat-card strong{display:block;font-size:2rem;color:#1d4ed8;line-height:1}
.mini-stat-card span{display:block;margin-top:8px;color:var(--muted);font-size:.92rem}
.mini-stat-card.success strong{color:#16a34a}.mini-stat-card.warn strong{color:#d97706}
.chip-row{display:flex;gap:10px;flex-wrap:wrap}
.pill-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-weight:600;font-size:.92rem;box-shadow:var(--shadow)}
.pill-chip.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.dot{width:9px;height:9px;border-radius:999px;display:inline-block;flex:0 0 auto}
.dot.red,.event-dot.red,.brand-icon.red,.progress-line .red{background:#ff453a}.dot.blue,.event-dot.blue,.brand-icon.blue,.progress-line .blue{background:#1570ef}.dot.green,.event-dot.green,.brand-icon.green,.progress-line .green{background:#34c759}.dot.yellow,.event-dot.yellow,.brand-icon.yellow,.progress-line .yellow{background:#ff9500}.dot.purple,.event-dot.purple,.brand-icon.purple,.progress-line .purple{background:#af52de}.dot.gray,.event-dot.gray,.brand-icon.gray,.progress-line .gray{background:#a1a1aa}
.section-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.92rem;font-weight:600;padding:0 6px}
.task-check-list{display:grid;gap:6px}
.task-check-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:flex-start;padding:14px 6px;border-bottom:1px solid #edf2f7}
.task-check-item:last-child{border-bottom:none}
.task-check-item.is-done strong,.task-check-item.is-done .task-meta-line{opacity:.55;text-decoration:line-through}
.task-check-form{margin:0}
.check-toggle{appearance:none;border:none;background:none;padding:2px;cursor:pointer;color:#cbd5e1;font-size:1.35rem;line-height:1}
.check-toggle.checked{color:#34c759}
.task-check-body strong{display:block;font-size:1.06rem;line-height:1.35}
.task-meta-line{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:.88rem;margin-top:5px}
.meta-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;background:#f8fafc;border:1px solid #edf2f7}
.status-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;background:#f8fafc;border:1px solid #edf2f7}
.status-chip.red{color:#b42318}.status-chip.green{color:#027a48}.status-chip.yellow{color:#b54708}.status-chip.gray{color:#667085}
.queue-list{display:grid;gap:10px}
.queue-item{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid #edf2f7}.queue-item:last-child{border-bottom:none}
.queue-icon{width:18px;height:18px;border-radius:6px}.queue-copy{flex:1}.queue-copy strong{display:block}.queue-copy small{color:var(--muted)}.queue-trailing{font-weight:700;color:#16a34a}
.productivity-card strong{font-size:.88rem;letter-spacing:.08em}.productivity-percent{font-size:1.1rem;font-weight:700;color:#22c55e}
.productivity-bar{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:12px 0 16px}.productivity-bar div{height:100%;background:linear-gradient(90deg,#2563eb,#22c55e);border-radius:999px}
.productivity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.productivity-grid small{display:block;color:var(--muted)}.productivity-grid strong{display:block;margin-top:6px;font-size:1.35rem;letter-spacing:normal;color:#111827}
.calendar-phone-card{padding:20px}
.calendar-top-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.calendar-top-row strong{font-size:1.5rem}
.month-nav{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:#eff6ff;color:#1d4ed8}
.calendar-weekdays,.calendar-grid-phone{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.calendar-weekdays{margin-bottom:10px;color:#98a2b3;font-size:.85rem;text-align:center}
.calendar-cell{min-height:72px;padding:10px 6px;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:#fff;color:#111827}.calendar-cell.muted{opacity:.35}.calendar-cell.selected{background:#1570ef;color:#fff;box-shadow:0 14px 28px rgba(21,112,239,.24)}.calendar-cell.selected small{color:#fff}.calendar-cell small{display:flex;gap:3px;min-height:10px}
.event-dot{width:5px;height:5px;border-radius:999px;display:inline-block}
.brand-card-list{display:grid;gap:0}
.brand-row-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 2px;border-bottom:1px solid #edf2f7}.brand-row-card:last-child{border-bottom:none}
.brand-row-left{display:flex;align-items:center;gap:12px}.brand-icon{width:18px;height:18px;border-radius:7px}.brand-row-left strong{display:block;font-size:1.05rem}.brand-row-left small{display:block;color:var(--muted);margin-top:3px}.brand-row-right{display:flex;align-items:center;gap:12px;color:#98a2b3}
.brand-add-btn{width:100%;min-height:56px;border-radius:18px;background:#dfeafe;color:#1570ef;box-shadow:none;font-weight:700}
.brand-progress-list{display:grid;gap:16px}.brand-progress-row .toolbar{margin-bottom:8px}.progress-line{height:7px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress-line div{height:100%;border-radius:999px}
.add-task-card{padding:22px}.task-quick-form{display:grid;gap:16px}.choice-row{display:flex;gap:10px;flex-wrap:wrap}
.choice-pill{position:relative;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;background:#fff;border:1px solid #d8e1ef;border-radius:999px;font-weight:600;cursor:pointer}
.choice-pill input{position:absolute;opacity:0;pointer-events:none}.choice-pill:has(input:checked),.choice-pill.active{border-color:#1570ef;background:#eff6ff;color:#1570ef}
.muted-inline{font-size:.82rem;font-weight:600;color:#64748b}
.add-task-submit{width:100%;min-height:56px;border-radius:18px;font-size:1rem;box-shadow:0 14px 28px rgba(21,112,239,.2)}
.task-trailing-actions{display:flex;gap:8px;align-items:center}
.notification-stack-form{display:grid;gap:14px}.settings-card-row,.settings-item{display:flex;align-items:center;justify-content:space-between;gap:16px}.settings-title-block small,.settings-item small{display:block;color:var(--muted);margin-top:3px}
.settings-stack{display:grid;gap:0;padding:0}.settings-item{padding:16px 18px;border-bottom:1px solid #edf2f7}.settings-item:last-child{border-bottom:none}.small-inline{width:130px;min-width:130px}
.switch{position:relative;display:inline-flex}.switch input{position:absolute;opacity:0}.switch span{width:38px;height:24px;background:#d1d5db;border-radius:999px;display:block;position:relative;transition:.18s ease}.switch span::after{content:"";position:absolute;width:18px;height:18px;border-radius:999px;background:#fff;left:3px;top:3px;transition:.18s ease;box-shadow:0 1px 2px rgba(0,0,0,.18)}.switch input:checked + span{background:#34c759}.switch input:checked + span::after{transform:translateX(14px)}
.notify-preview-card{padding:22px}.notify-bubble{background:#11c451;color:#fff;border-radius:18px;padding:18px 16px;max-width:280px;display:grid;gap:5px}.notify-bubble small{opacity:.9}
.notify-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #edf2f7}.notify-row:last-child{border-bottom:none}.notify-row small{display:block;color:var(--muted);margin-top:4px}.notify-row.read strong,.notify-row.read small{opacity:.58}

@media (max-width: 1100px){
  .focus-shell,.focus-shell.narrow{width:min(720px,100%)}
}
@media (max-width: 760px){
  .focus-head{flex-direction:column;align-items:stretch}.mini-stats-row,.productivity-grid{grid-template-columns:1fr}.calendar-cell{min-height:64px}.task-check-item{grid-template-columns:auto 1fr}.task-trailing-actions{grid-column:2}.small-inline{width:110px;min-width:110px}.calendar-top-row strong{font-size:1.25rem}
}


/* Phase 5.3 desktop normalization */
.focus-shell.focus-shell-desktop{
  width:min(1320px,100%);
}
.focus-shell.narrow,
.focus-shell{
  width:min(1320px,100%);
}
.desktop-split-2{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.desktop-split-calendar{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:18px;
  align-items:start;
}
.desktop-split-notify{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:18px;
  align-items:start;
}
.desktop-align-start{align-items:start}
.task-list-card,.notify-side-stack{display:grid;gap:14px}
.focus-card{
  border-radius:22px;
  padding:22px;
}
.focus-head.compact h2,
.focus-head h2{
  display:flex;
  align-items:center;
  gap:10px;
}
.calendar-phone-card{
  padding:24px;
}
.calendar-top-row strong{
  font-size:1.65rem;
}
.calendar-cell{
  min-height:96px;
  padding:12px 8px;
}
.task-check-item{
  padding:16px 4px;
}
.add-task-card .form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.task-quick-form{
  gap:18px;
}
.choice-pill{
  min-height:44px;
}
.notification-stack-form .focus-card,
.notification-stack-form > .focus-card{
  margin:0;
}
.settings-stack{
  border:1px solid #edf2f7;
  border-radius:18px;
  overflow:hidden;
}
.notify-preview-card .notify-bubble{
  max-width:100%;
}
.brand-add-btn{
  width:100%;
}
.queue-list,.brand-progress-list,.task-check-list{
  gap:10px;
}
@media (max-width:1100px){
  .desktop-split-2,
  .desktop-split-calendar,
  .desktop-split-notify{
    grid-template-columns:1fr;
  }
  .focus-shell.focus-shell-desktop,
  .focus-shell.narrow,
  .focus-shell{
    width:min(900px,100%);
  }
}


/* Phase 5.4 professional UI refinement */
:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --sidebar:#0f172a;
  --sidebar-2:#162235;
  --blue:#2563eb;
  --green:#16a34a;
  --yellow:#d97706;
  --red:#ef4444;
  --shadow:0 18px 44px rgba(15,23,42,.06);
  --nav-shadow:0 20px 48px rgba(15,23,42,.18);
}
body{
  background:radial-gradient(circle at top left,rgba(37,99,235,.06),transparent 24%),linear-gradient(180deg,#eef3f9 0%,#f7f9fc 48%,#f2f5fa 100%);
}
.sidebar{
  padding:28px 20px 24px;
  border-right:1px solid rgba(255,255,255,.06);
}
.brand{padding:2px 8px 10px;margin-bottom:22px}
.brand-badge{border-radius:16px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.nav-link{min-height:48px;border:1px solid transparent;margin-bottom:8px;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.08);transform:translateX(2px)}
.content{padding:32px}
.topbar{
  background:rgba(255,255,255,.76);
  border:1px solid rgba(226,232,240,.95);
  backdrop-filter:blur(14px);
  border-radius:28px;
  padding:24px 26px;
  box-shadow:0 18px 40px rgba(15,23,42,.05);
  margin-bottom:24px;
}
.page-title-shell{display:grid;gap:10px}
.page-overline{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#2563eb;background:#eff6ff;border:1px solid #dbeafe;padding:8px 12px;border-radius:999px;width:max-content}
.page-title h1{display:flex;align-items:center;gap:14px;margin:0;font-size:2.3rem;line-height:1.02;letter-spacing:-.04em}
.page-title p{margin:0;max-width:760px;line-height:1.65;color:var(--muted)}
.page-icon{width:54px;height:54px;border-radius:18px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(37,99,235,.08)}
.top-actions .btn-light,.user-chip{background:rgba(255,255,255,.94);border:1px solid var(--line);box-shadow:none}
.card,.stat,.table-wrap,.focus-card,.mini-stat-card,.kanban-col,.productivity-card,.notify-preview-card,.auth-card,.install-card{border:1px solid rgba(226,232,240,.95);box-shadow:var(--shadow)}
.focus-shell{gap:18px}
.focus-head{padding:0 4px}
.focus-head h2{font-size:1.52rem}
.focus-head p{line-height:1.6}
.focus-card{background:rgba(255,255,255,.96);border-radius:24px;padding:24px}
.section-label{display:flex;align-items:center;gap:10px;font-weight:700;color:#334155;margin-bottom:12px}
.mini-stats-row{gap:18px}
.mini-stat-card{border-radius:24px;padding:22px 24px;text-align:left}
.mini-stat-card strong{font-size:2.25rem}
.mini-stat-card span{margin-top:6px;font-size:.95rem}
.pill-chip{border:1px solid #e2e8f0;background:rgba(255,255,255,.88);box-shadow:none}
.pill-chip.active{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.task-check-item,.queue-item,.notify-row,.brand-row-card{padding:14px 0}
.task-check-item:first-child,.queue-item:first-child,.notify-row:first-child,.brand-row-card:first-child{padding-top:2px}
.choice-pill{background:#f8fafc;border-color:#e2e8f0;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.choice-pill:has(input:checked),.choice-pill.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;box-shadow:none}
.input,.select,.textarea,.search-input{background:#fcfdff;border-color:#dbe4f0}
.input:focus,.select:focus,.textarea:focus,.search-input:focus{box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 16px 30px rgba(37,99,235,.22)}
.btn-light{background:#fff}
.calendar-cell{background:#f8fbff;border:1px solid #e4edf7;min-height:98px}
.calendar-cell.selected{background:#1d4ed8;border-color:#1d4ed8}
.calendar-weekdays{font-weight:600;color:#94a3b8}
.progress-line{height:8px;background:#e8eef6}
.productivity-bar{height:8px;background:#e8eef6}
.kanban-card{border:1px solid #e2e8f0;box-shadow:none;background:#fcfdff}
.kanban-col{border-radius:24px}
.table th{background:#f8fbff;color:#475569}
.notify-bubble{background:linear-gradient(135deg,#1d4ed8,#2563eb)}
.footer-note{padding:8px 0 16px;text-align:center;color:#64748b;font-weight:500}
.mobile-top{border:1px solid rgba(255,255,255,.08)}
.login-page{background:radial-gradient(circle at top left,rgba(37,99,235,.08),transparent 28%),linear-gradient(180deg,#eef3f9,#f7f9fc)}
.login-hero-clean,.login-card-clean{border:1px solid rgba(226,232,240,.95)}
.login-hero-clean{box-shadow:0 24px 48px rgba(15,23,42,.1)}
.login-card-clean{box-shadow:0 24px 48px rgba(15,23,42,.06)}
.install-card-enhanced{background:rgba(255,255,255,.94)}
@media (max-width: 980px){
  .content{padding:18px}
  .topbar{padding:18px 18px 20px;border-radius:22px}
  .page-title h1{font-size:1.9rem}
}


/* Phase 5.5 Thai premium cleanup */
.topbar{padding:22px 24px;border-radius:30px}
.page-title h1{font-size:2.15rem}
.page-title p{font-size:1rem;max-width:840px}
.page-overline{font-size:.8rem;letter-spacing:.04em}
.nav-link{font-size:1rem}
.notice{border:1px solid rgba(0,0,0,.04);box-shadow:0 10px 24px rgba(15,23,42,.05)}
.card,.focus-card,.stat,.table-wrap,.mini-stat-card,.kanban-col,.auth-card,.install-card,.notify-preview-card{box-shadow:0 18px 40px rgba(15,23,42,.055)}
.card,.focus-card,.table-wrap,.stat{border-radius:24px}
.focus-card{padding:24px 24px 22px}
.section-label{font-size:1rem;font-weight:700;color:#24364d;margin-bottom:14px}
.section-label i{width:18px;text-align:center;color:#2563eb}
.btn{border-radius:16px;transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease}
.btn:hover{transform:translateY(-1px)}
.btn-light{border:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#fbfdff)}
.btn-primary{min-height:50px;padding-inline:18px}
.dashboard-action-row{display:flex;justify-content:flex-end;align-items:center;margin:2px 4px 2px}
.mini-stat-card{background:linear-gradient(180deg,#ffffff,#fbfdff);position:relative;overflow:hidden}
.mini-stat-card::after{content:"";position:absolute;right:-30px;top:-30px;width:96px;height:96px;border-radius:50%;background:rgba(37,99,235,.05)}
.mini-stat-card.success::after{background:rgba(22,163,74,.06)}
.mini-stat-card.warn::after{background:rgba(217,119,6,.07)}
.mini-stat-card strong{position:relative;z-index:1}
.mini-stat-card span{position:relative;z-index:1;color:#52667f;font-weight:500}
.pill-chip{min-height:42px;padding:9px 16px;font-weight:600}
.empty-state{padding:34px 18px;border:1px dashed #d8e4f2;border-radius:18px;background:#fbfdff;color:#74839a}
.task-check-item,.queue-item,.notify-row,.brand-row-card,.item-row{border-bottom:1px solid #edf2f7}
.task-check-item:last-child,.queue-item:last-child,.notify-row:last-child,.brand-row-card:last-child,.item-row:last-child{border-bottom:none}
.task-check-body strong,.queue-copy strong,.brand-row-left strong{font-size:1rem;color:#0f172a}
.task-meta-line,.queue-copy small,.brand-row-left small{line-height:1.65}
.meta-badge,.status-chip,.badge{border-radius:999px}
.status-chip{font-weight:700}
.grid-4 .stat{padding:24px}
.stat-label{font-weight:600;color:#64748b}
.stat-value{font-size:2.1rem;letter-spacing:-.03em}
.table th,.table td{padding:14px 16px}
.table tbody tr:hover{background:#fbfdff}
.table thead th{font-weight:700}
.form-group label{font-weight:600;color:#31455f}
.input,.select,.textarea,.search-input{border-radius:16px;padding:13px 15px}
.input::placeholder,.textarea::placeholder{color:#94a3b8}
.choice-pill{padding:10px 15px;min-height:46px}
.focus-head.compact{margin-bottom:8px}
.focus-head.compact h2{font-size:1.35rem}
.progress-line,.productivity-bar{height:10px;border-radius:999px}
.productivity-grid small{display:block;color:#64748b;margin-bottom:6px}
.productivity-grid strong{font-size:1.05rem}
.kanban-card{border-radius:18px;padding:16px}
.kanban-card strong{display:block;margin-bottom:6px}
.notify-bubble{box-shadow:0 18px 34px rgba(37,99,235,.18)}
.footer-note{margin-top:22px;font-size:.92rem}
.brand-add-btn{border:1px solid #dbeafe;background:linear-gradient(180deg,#eff6ff,#e8f1ff);color:#1d4ed8}
.top-actions .btn-light,.user-chip{min-height:48px}
.login-card-head p,.login-hero-copy p{line-height:1.75}
@media (max-width: 980px){
  .page-title h1{font-size:1.8rem}
  .dashboard-action-row{justify-content:stretch}
  .dashboard-action-row .btn{width:100%}
}

/* Phase 5.6 dashboard redesign */
.dashboard-v2-shell{
  width:100%;
  margin:0;
  display:grid;
  gap:22px;
}
.dashboard-v2-hero{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);
  gap:20px;
  align-items:stretch;
}
.dashboard-v2-hero-main,
.dashboard-v2-hero-side,
.dashboard-v2-panel{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  border-radius:30px;
}
.dashboard-v2-hero-main{
  position:relative;
  overflow:hidden;
  padding:28px 30px;
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 28%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 55%,#f4f8ff 100%);
}
.dashboard-v2-hero-main::after{
  content:"";
  position:absolute;
  inset:auto -30px -30px auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.12),transparent 68%);
  pointer-events:none;
}
.dashboard-v2-kicker,
.panel-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:8px 13px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  color:#1d4ed8;
  background:#eff6ff;
  border:1px solid #dbeafe;
}
.dashboard-v2-hero-main h2{
  margin:16px 0 6px;
  font-size:3rem;
  line-height:1;
  letter-spacing:-.05em;
  color:#0f172a;
}
.dashboard-v2-date{
  font-size:1.02rem;
  font-weight:600;
  color:#47627f;
}
.dashboard-v2-hero-main > p{
  margin:16px 0 0;
  max-width:720px;
  font-size:1.02rem;
  line-height:1.75;
  color:#5a6f88;
}
.dashboard-v2-note{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #e3edf8;
  color:#24364d;
  font-weight:600;
  width:max-content;
  max-width:100%;
}
.dashboard-v2-note i{color:#2563eb}
.dashboard-v2-stat-row{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}
.dashboard-v2-stat{
  padding:18px 18px 16px;
  border-radius:24px;
  border:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.dashboard-v2-stat small{
  display:block;
  color:#64748b;
  font-weight:600;
  margin-bottom:8px;
}
.dashboard-v2-stat strong{
  display:block;
  font-size:2.25rem;
  line-height:1;
  letter-spacing:-.04em;
  color:#0f172a;
}
.dashboard-v2-stat span{
  display:block;
  margin-top:9px;
  color:#64748b;
  font-size:.92rem;
  line-height:1.5;
}
.glass-blue strong{color:#1d4ed8}
.glass-green strong{color:#16a34a}
.glass-amber strong{color:#d97706}
.dashboard-v2-hero-side{
  padding:20px;
  display:grid;
  gap:16px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.dashboard-v2-score-card{
  border-radius:24px;
  padding:22px;
  background:linear-gradient(160deg,#ffffff 0%,#f5f9ff 55%,#eef8ff 100%);
  color:#0f172a;
  border:1px solid #dbe7f5;
  box-shadow:0 18px 34px rgba(37,99,235,.08);
}
.dashboard-v2-score-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.dashboard-v2-score-top small{
  display:block;
  color:#5f7490;
  font-weight:700;
  margin-bottom:7px;
}
.dashboard-v2-score-top strong{
  font-size:2.4rem;
  line-height:1;
  letter-spacing:-.04em;
  color:#0f172a;
}
.score-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}
.score-badge.is-good{background:#ecfdf5;color:#15803d;border:1px solid #bbf7d0}
.score-badge.is-alert{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}
.dashboard-v2-progress{
  height:10px;
  border-radius:999px;
  background:#e6eef8;
  overflow:hidden;
  margin:18px 0 16px;
}
.dashboard-v2-progress div{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#60a5fa,#34d399);
}
.dashboard-v2-score-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.dashboard-v2-score-grid div{
  padding:12px 0 0;
  border-top:1px solid #dfe8f2;
}
.dashboard-v2-score-grid span{
  display:block;
  color:#64748b;
  font-size:.85rem;
  margin-bottom:6px;
}
.dashboard-v2-score-grid strong{
  font-size:1.2rem;
}
.dashboard-v2-quick-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.dashboard-v2-quick-actions .btn{
  min-height:54px;
  border-radius:18px;
  justify-content:flex-start;
  padding-inline:16px;
  font-size:1rem;
  font-weight:700;
}
.dashboard-v2-quick-actions .btn i{width:18px;min-width:18px;text-align:center;font-size:1rem;line-height:1}
.dashboard-v2-quick-actions .btn.btn-primary i{font-size:1rem;transform:none}
.dashboard-v2-main-grid,
.dashboard-v2-bottom-grid{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);
  gap:20px;
  align-items:start;
}
.dashboard-v2-panel{
  padding:24px;
}
.dashboard-v2-panel-soft{
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
.dashboard-v2-tasks-panel{background:linear-gradient(180deg,#ffffff,#fbfdff);}
.dashboard-v2-side-stack{
  display:grid;
  gap:20px;
}
.dashboard-v2-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.dashboard-v2-panel-head.compact{margin-bottom:14px}
.dashboard-v2-panel-head h3{
  margin:10px 0 6px;
  font-size:1.45rem;
  line-height:1.1;
  letter-spacing:-.03em;
}
.dashboard-v2-panel-head p{
  margin:0;
  color:#64748b;
  line-height:1.65;
}
.panel-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#1d4ed8;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  padding:10px 14px;
  border-radius:999px;
  background:#f3f7ff;
  border:1px solid #dbe7f6;
}
.dashboard-v2-task-list,
.dashboard-v2-mini-list,
.dashboard-v2-brand-list,
.dashboard-v2-status-list{
  display:grid;
  gap:12px;
}
.dashboard-v2-task-item{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  align-items:flex-start;
  padding:18px;
  border-radius:24px;
  border:1px solid #e6edf6;
  background:linear-gradient(180deg,#ffffff,#f9fbff);
  box-shadow:0 14px 32px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-v2-task-item:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(15,23,42,.08);
  border-color:#d8e5f5;
}
.dashboard-v2-task-item.is-done{
  background:linear-gradient(180deg,#f7fff9,#f2fbf5);
  border-color:#d9f1e0;
}
.dashboard-v2-check{
  width:48px;
  height:48px;
  border-radius:18px;
  border:1px solid #d8e5f3;
  background:#fff;
  background-image:none;
  color:#2563eb;
  display:grid;
  place-items:center;
  font-size:1.15rem;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.dashboard-v2-check:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(37,99,235,.12)}
.dashboard-v2-check.checked,
.dashboard-v2-check.checked:hover{
  background:#22c55e !important;
  background-image:none !important;
  border-color:#22c55e !important;
  color:#fff;
  box-shadow:0 12px 26px rgba(34,197,94,.2);
}
.dashboard-v2-task-copy{display:grid;gap:10px;min-width:0}
.dashboard-v2-task-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.dashboard-v2-title-wrap{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}
.dashboard-v2-brand-avatar-slot{display:inline-flex;flex:0 0 auto}
.dashboard-v2-brand-avatar{
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid #d9e6f4;
  background:linear-gradient(180deg,#f8fbff,#eef4fb);
  display:grid;
  place-items:center;
  color:#2563eb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  overflow:hidden;
}
.dashboard-v2-brand-avatar i{font-size:1.1rem;line-height:1}
.dashboard-v2-brand-avatar.has-logo{background:#fff;padding:5px}
.dashboard-v2-brand-avatar img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block}
.dashboard-v2-title-stack{display:grid;gap:8px;min-width:0;flex:1}
.dashboard-v2-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.dashboard-v2-platforms{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.dashboard-v2-task-top strong{
  font-size:1.06rem;
  color:#0f172a;
  line-height:1.3;
  letter-spacing:-.01em;
}

.platform-icon-chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;border:1px solid #dbe6f3;background:#fff;color:#64748b;box-shadow:0 6px 16px rgba(15,23,42,.04)}
.platform-icon-chip i{font-size:.95rem;line-height:1}

.dashboard-v2-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  color:#64748b;
  font-size:.92rem;
  line-height:1.55;
}
.dashboard-v2-meta-row span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.brand-meta-badge .mini-brand-logo{width:18px;height:18px;border-radius:999px;object-fit:cover;display:block;border:1px solid rgba(148,163,184,.22)}
.dashboard-v2-status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid #edf2f7;
}
.dashboard-v2-status-row:last-child{border-bottom:none;padding-bottom:0}
.dashboard-v2-status-row:first-child{padding-top:0}
.status-copy{
  display:flex;
  align-items:center;
  gap:10px;
  color:#334155;
  font-weight:600;
}
.status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}
.status-dot.is-blue{background:#2563eb}
.status-dot.is-green{background:#16a34a}
.status-dot.is-amber{background:#d97706}
.status-dot.is-violet{background:#8b5cf6}
.status-dot.is-red{background:#ef4444}
.dashboard-v2-status-row strong{
  font-size:1.1rem;
  color:#0f172a;
}
.dashboard-v2-mini-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #e4edf7;
}
.dashboard-v2-mini-item strong{display:block;color:#0f172a}
.dashboard-v2-mini-item small{display:block;margin-top:4px;color:#64748b}
.mini-done-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  background:#ecfdf5;
  color:#15803d;
  font-weight:700;
  white-space:nowrap;
}
.dashboard-v2-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.dashboard-v2-brand-list{gap:14px}
.dashboard-v2-brand-item{
  padding:18px;
  border-radius:22px;
  border:1px solid #e7eef7;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
.dashboard-v2-brand-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.brand-copy{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-copy strong{display:block;color:#0f172a}
.brand-copy small{display:block;margin-top:4px;color:#64748b}
.brand-bullet{
  width:13px;
  height:13px;
  border-radius:50%;
  display:inline-block;
  flex:0 0 auto;
}
.brand-bullet.red{background:#ef4444}
.brand-bullet.purple{background:#a855f7}
.brand-bullet.blue{background:#2563eb}
.brand-bullet.green{background:#22c55e}
.brand-bullet.slate{background:#94a3b8}
.brand-percent{
  min-width:64px;
  text-align:right;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-.04em;
  color:#0f172a;
}
.dashboard-v2-brand-progress{
  height:10px;
  border-radius:999px;
  background:#edf2f7;
  overflow:hidden;
}
.dashboard-v2-brand-progress div{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#60a5fa);
}
.dashboard-v2-insight-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.insight-card{
  padding:20px 18px;
  border-radius:22px;
  border:1px solid #e4edf7;
  background:#fbfdff;
}
.insight-card small{
  display:block;
  color:#64748b;
  font-weight:600;
  margin-bottom:10px;
}
.insight-card strong{
  display:block;
  font-size:2rem;
  line-height:1;
  letter-spacing:-.04em;
  color:#0f172a;
}
.insight-card span{
  display:block;
  margin-top:10px;
  color:#64748b;
  line-height:1.6;
  font-size:.92rem;
}
.insight-card.highlight{
  background:linear-gradient(160deg,#eff6ff,#eefbf5);
  border-color:#d9e9fb;
}
.empty-state.compact{padding:20px 16px}
@media (max-width: 1200px){
  .dashboard-v2-hero,
  .dashboard-v2-main-grid,
  .dashboard-v2-bottom-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 820px){
  .dashboard-v2-hero-main,
  .dashboard-v2-hero-side,
  .dashboard-v2-panel{padding:18px}
  .dashboard-v2-hero-main h2{font-size:2.3rem}
  .dashboard-v2-stat-row,
  .dashboard-v2-score-grid,
  .dashboard-v2-insight-grid,
  .dashboard-v2-quick-actions{
    grid-template-columns:1fr;
  }
  .dashboard-v2-panel-head,
  .dashboard-v2-task-top,
  .dashboard-v2-brand-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .dashboard-v2-chip-row{justify-content:flex-start}
  .brand-percent{text-align:left}
}


/* Phase 5.7 workspace full-width refinement */
.focus-shell,
.focus-shell.narrow,
.focus-shell.focus-shell-desktop,
.workspace-shell{
  width:100%;
  max-width:none;
  margin:0;
}
.workspace-shell{
  display:grid;
  gap:22px;
}
.workspace-metric-grid{
  display:grid;
  gap:18px;
}
.workspace-metric-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.workspace-metric-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace-metric-card{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:8px;
  min-height:148px;
  padding:24px 24px 22px;
  border-radius:26px;
  border:1px solid rgba(226,232,240,.95);
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96));
  box-shadow:0 18px 42px rgba(15,23,42,.05);
}
.workspace-metric-card::after{
  content:"";
  position:absolute;
  right:-34px;
  top:-34px;
  width:118px;
  height:118px;
  border-radius:999px;
  background:rgba(37,99,235,.055);
}
.workspace-metric-card.success::after{background:rgba(22,163,74,.07)}
.workspace-metric-card.warning::after{background:rgba(217,119,6,.08)}
.workspace-metric-card.soft-blue::after{background:rgba(59,130,246,.08)}
.workspace-metric-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#2563eb;
  border:1px solid #dbeafe;
  font-size:1.22rem;
  position:relative;
  z-index:1;
}
.workspace-metric-card small{
  color:#64748b;
  font-weight:600;
  font-size:.94rem;
  position:relative;
  z-index:1;
}
.workspace-metric-card strong{
  font-size:2.35rem;
  line-height:1;
  letter-spacing:-.04em;
  color:#0f172a;
  position:relative;
  z-index:1;
}
.workspace-metric-card.success strong{color:#16a34a}
.workspace-metric-card.warning strong{color:#d97706}
.workspace-metric-card span{
  color:#64748b;
  line-height:1.65;
  position:relative;
  z-index:1;
}
.workspace-split-task,
.workspace-split-calendar,
.workspace-split-brands,
.workspace-split-notify{
  display:grid;
  gap:18px;
  align-items:start;
}
.workspace-split-task{grid-template-columns:minmax(460px,.98fr) minmax(520px,1.12fr)}
.workspace-split-calendar{grid-template-columns:minmax(720px,1.16fr) minmax(360px,.84fr)}
.workspace-split-brands{grid-template-columns:minmax(640px,1.18fr) minmax(360px,.82fr)}
.workspace-split-notify{grid-template-columns:minmax(620px,1.18fr) minmax(340px,.82fr)}
.workspace-side-stack{display:grid;gap:18px}
.workspace-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.98));
  border-radius:28px;
  padding:26px;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 18px 44px rgba(15,23,42,.055);
}
.workspace-list-panel{height:100%}
.workspace-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.compact-panel-head{margin-bottom:16px}
.workspace-title-block{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.workspace-title-block.inline{align-items:center}
.workspace-icon-badge{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#2563eb;
  border:1px solid #dbeafe;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  font-size:1.18rem;
}
.workspace-icon-badge.small{
  width:40px;
  height:40px;
  flex-basis:40px;
  border-radius:14px;
  font-size:1rem;
}
.workspace-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#2563eb;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.workspace-panel h3,
.workspace-section-heading h4{
  margin:0;
  font-size:1.55rem;
  line-height:1.08;
  letter-spacing:-.035em;
  color:#0f172a;
}
.workspace-panel p,
.workspace-section-heading p{
  margin:7px 0 0;
  color:#64748b;
  line-height:1.7;
}
.workspace-count-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:700;
}
.workspace-section-heading{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:0 0 18px;
  margin-bottom:6px;
  border-bottom:1px solid #edf2f7;
}
.workspace-list-stack{display:grid;gap:10px}
.workspace-task-item,
.workspace-brand-item{
  padding:16px 0;
}
.workspace-task-item .task-meta-line,
.workspace-brand-item small{color:#64748b}
.workspace-progress-row{
  padding:12px 0;
  border-bottom:1px solid #edf2f7;
}
.workspace-progress-row:last-child{border-bottom:none;padding-bottom:0}
.workspace-calendar-panel .calendar-weekdays,
.workspace-calendar-panel .workspace-calendar-grid{max-width:none}
.workspace-calendar-grid{gap:10px}
.workspace-calendar-nav{margin-bottom:18px}
.workspace-calendar-nav strong{font-size:1.85rem;letter-spacing:-.03em}
.workspace-notify-form{gap:18px}
.settings-card-row.workspace-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.notification-stack-form .workspace-panel.settings-stack{
  padding:22px 22px 8px;
}
.notification-stack-form .workspace-panel.settings-stack .settings-item{
  padding-inline:0;
}
.notify-row strong i{color:#2563eb;margin-right:8px}
.brand-add-btn{min-height:58px;border-radius:18px}
.choice-pill i{font-size:.9rem;opacity:.7}
@media (max-width:1380px){
  .workspace-metric-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-split-task,
  .workspace-split-calendar,
  .workspace-split-brands,
  .workspace-split-notify{
    grid-template-columns:1fr;
  }
}
@media (max-width:900px){
  .workspace-metric-grid-3,
  .workspace-metric-grid-4{grid-template-columns:1fr}
  .workspace-panel{padding:20px}
  .workspace-panel-head{flex-direction:column;align-items:stretch}
  .workspace-title-block{gap:12px}
  .workspace-panel h3,.workspace-section-heading h4{font-size:1.32rem}
  .workspace-count-chip{width:max-content}
}

/* Phase 5.8 catalogs and brand manager */
.workspace-catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.catalog-panel .workspace-panel-head.compact{margin-bottom:14px}
.catalog-form-inline{
  display:grid;
  grid-template-columns:1.1fr .9fr auto;
  gap:10px;
  margin-bottom:14px;
}
.catalog-chip-list{
  display:grid;
  gap:10px;
}
.catalog-chip-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid #e5edf7;
  border-radius:16px;
  background:#fff;
}
.choice-logo,
.mini-brand-logo{
  width:20px;
  height:20px;
  border-radius:6px;
  object-fit:cover;
  border:1px solid #dbeafe;
  background:#fff;
}
.mini-brand-logo{width:18px;height:18px;border-radius:5px}
.brand-logo-preview-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:8px;
}
.brand-logo-preview,
.brand-logo-card{
  width:64px;
  height:64px;
  min-width:64px;
  min-height:64px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid #dbeafe;
  background:#fff;
  aspect-ratio:1 / 1;
  display:block;
}
.brand-logo-card{width:56px;height:56px;min-width:56px;min-height:56px;border-radius:14px;flex:0 0 56px}
.brand-logo-fallback{
  width:56px;
  height:56px;
  min-width:56px;
  min-height:56px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1d4ed8;
  background:#eef4ff;
  border:1px solid #dbeafe;
  box-shadow:0 8px 20px rgba(37,99,235,.08), inset 0 0 0 1px rgba(255,255,255,.35);
  flex:0 0 56px;
  aspect-ratio:1 / 1;
  overflow:hidden;
}
.brand-logo-fallback.red{background:#ffe8e6;border-color:#ffd2cc;color:#d92d20}
.brand-logo-fallback.blue{background:#eaf2ff;border-color:#d5e5ff;color:#2563eb}
.brand-logo-fallback.green{background:#e8fff1;border-color:#c9f5d8;color:#16a34a}
.brand-logo-fallback.yellow{background:#fff6e5;border-color:#ffe6b2;color:#d97706}
.brand-logo-fallback.purple{background:#f3e8ff;border-color:#e9d5ff;color:#9333ea}
.brand-logo-fallback.gray{background:#f3f4f6;border-color:#e5e7eb;color:#6b7280}
.brand-logo-fallback i{
  font-size:1.45rem;
  line-height:1;
}
.rich-brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.rich-brand-row .brand-row-left{display:flex;align-items:center;gap:14px;flex:1}
.rich-brand-row .brand-row-left > div:last-child{flex:1}
.progress-line.compact{height:8px;margin-top:10px}
.form-hint{
  color:#64748b;
  font-size:.88rem;
  line-height:1.6;
}
.brand-upload-box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:70px;
  padding:12px 14px;
  border:1px solid #dbe4f0;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fb 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.brand-upload-box.has-file{
  border-color:#bfd6ff;
  background:linear-gradient(180deg,#f4f8ff 0%,#eef4ff 100%);
}
.brand-upload-meta{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  flex:1;
}
.brand-upload-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dbeafe;
  background:#fff;
  color:#2563eb;
  flex:0 0 42px;
}
.brand-upload-meta strong,
.brand-upload-meta small{
  display:block;
}
.brand-upload-meta strong{
  color:#0f172a;
  font-size:.96rem;
  font-weight:700;
}
.brand-upload-meta small{
  color:#64748b;
  font-size:.87rem;
  margin-top:2px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.brand-upload-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid #cdd9ea;
  background:#fff;
  color:#0f172a;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  flex:0 0 auto;
}
.brand-upload-button:hover{
  background:#f8fbff;
  border-color:#b8cae2;
}
.brand-upload-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
@media (max-width: 680px){
  .brand-upload-box{
    align-items:flex-start;
    flex-direction:column;
  }
  .brand-upload-button{
    width:100%;
  }
}
.brand-logo-delete-form{margin-top:10px}
.task-trailing-actions form{margin:0}
.workspace-title-block h3 + p{max-width:72ch}
@media (max-width:1380px){
  .workspace-catalog-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  .catalog-form-inline{grid-template-columns:1fr}
  .rich-brand-row{flex-direction:column;align-items:stretch}
  .rich-brand-row .brand-row-left{align-items:flex-start}
}


/* Shared smooth modal system */
body.modal-open{overflow:hidden}
.yd-modal-overlay,
[data-ui-modal],
.brand-modal-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s cubic-bezier(.22,1,.36,1), visibility 0s linear .28s;
  will-change:opacity;
}
.yd-modal-overlay[hidden],
[data-ui-modal][hidden],
.brand-modal-overlay[hidden]{display:flex!important}
.yd-modal-overlay.is-open,
[data-ui-modal].is-open,
.brand-modal-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}
.yd-modal-overlay.is-closing,
[data-ui-modal].is-closing,
.brand-modal-overlay.is-closing{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.yd-modal-backdrop,
[data-ui-modal] .yd-modal-backdrop,
.brand-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.18);
  backdrop-filter:blur(12px) saturate(118%);
  -webkit-backdrop-filter:blur(12px) saturate(118%);
  opacity:0;
  transition:opacity .28s cubic-bezier(.22,1,.36,1), backdrop-filter .28s cubic-bezier(.22,1,.36,1);
  will-change:opacity;
}
.yd-modal-close,
.brand-modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid #dbe4f0;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#0f172a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 24px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.yd-modal-close:hover,
.brand-modal-close:hover{
  transform:translateY(-1px);
  background:#ffffff;
  border-color:#cdd8e7;
  box-shadow:0 16px 30px rgba(15,23,42,.12);
}
.yd-modal-close i,
.brand-modal-close i{
  font-size:1rem;
  line-height:1;
}
.yd-modal-overlay.is-open .yd-modal-backdrop,
[data-ui-modal].is-open .yd-modal-backdrop,
.brand-modal-overlay.is-open .brand-modal-backdrop,
.brand-modal-overlay.is-open .yd-modal-backdrop{
  opacity:1;
}
.yd-modal-card,
[data-ui-modal] .yd-modal-card,
.brand-modal-card{
  position:relative;
  width:min(920px,100%);
  max-height:min(92vh,980px);
  overflow:auto;
  padding:24px;
  border-radius:28px;
  background:#ffffff;
  border:1px solid rgba(219,228,240,.96);
  box-shadow:0 32px 80px rgba(15,23,42,.18);
  opacity:0;
  transform:translateY(22px) scale(.985);
  transition:transform .34s cubic-bezier(.22,1,.36,1), opacity .24s ease, box-shadow .34s ease;
  will-change:transform, opacity;
}
.yd-modal-overlay.is-open .yd-modal-card,
[data-ui-modal].is-open .yd-modal-card,
.brand-modal-overlay.is-open .brand-modal-card{
  opacity:1;
  transform:translateY(0) scale(1);
}
.yd-modal-overlay.is-closing .yd-modal-card,
[data-ui-modal].is-closing .yd-modal-card,
.brand-modal-overlay.is-closing .brand-modal-card{
  opacity:0;
  transform:translateY(14px) scale(.99);
}
@media (prefers-reduced-motion: reduce){
  .yd-modal-overlay,
  [data-ui-modal],
  .brand-modal-overlay,
  .yd-modal-backdrop,
  [data-ui-modal] .yd-modal-backdrop,
  .brand-modal-backdrop,
  .yd-modal-card,
  [data-ui-modal] .yd-modal-card,
  .brand-modal-card{
    transition:none !important;
  }
}


/* Dashboard quick task modal */
.dashboard-task-modal{z-index:1450}
.dashboard-task-modal-card{width:min(960px,100%);max-height:min(90vh,960px);padding:26px 24px 22px;border-radius:30px;overflow:auto;background:#fff;box-shadow:0 34px 90px rgba(15,23,42,.18);border:1px solid rgba(219,228,240,.98)}
.dashboard-task-modal-header{padding-right:72px;margin-bottom:18px}
.dashboard-task-modal-form{gap:18px}
.dashboard-task-modal-grid{display:grid;gap:16px}
.dashboard-task-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard-task-choice-row{gap:10px}
.dashboard-task-choice-row .choice-pill{background:#f8fbff}
.dashboard-task-modal-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:4px}
.dashboard-task-modal-actions .btn,
.dashboard-task-modal-actions .add-task-submit{
  min-height:50px;
  padding-inline:20px;
}
.dashboard-task-modal-actions .add-task-submit{width:auto;min-width:180px;box-shadow:0 14px 30px rgba(37,99,235,.18)}
.dashboard-task-modal-actions .btn-light{box-shadow:none}
.dashboard-task-modal-card,
.yd-modal-card,
[data-ui-modal] .yd-modal-card,
.brand-modal-card{
  scrollbar-width:thin;
  scrollbar-color:#9db6db #eef4fb;
}
.dashboard-task-modal-card::-webkit-scrollbar,
.yd-modal-card::-webkit-scrollbar,
[data-ui-modal] .yd-modal-card::-webkit-scrollbar,
.brand-modal-card::-webkit-scrollbar{
  width:12px;
  height:12px;
}
.dashboard-task-modal-card::-webkit-scrollbar-track,
.yd-modal-card::-webkit-scrollbar-track,
[data-ui-modal] .yd-modal-card::-webkit-scrollbar-track,
.brand-modal-card::-webkit-scrollbar-track{
  background:#eef4fb;
  border-radius:999px;
}
.dashboard-task-modal-card::-webkit-scrollbar-thumb,
.yd-modal-card::-webkit-scrollbar-thumb,
[data-ui-modal] .yd-modal-card::-webkit-scrollbar-thumb,
.brand-modal-card::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#bfd2ec 0%,#8eaedf 100%);
  border-radius:999px;
  border:2px solid #eef4fb;
}
.dashboard-task-modal-card::-webkit-scrollbar-thumb:hover,
.yd-modal-card::-webkit-scrollbar-thumb:hover,
[data-ui-modal] .yd-modal-card::-webkit-scrollbar-thumb:hover,
.brand-modal-card::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#a8c2e7 0%,#6f96d6 100%);
}
@media (max-width: 820px){
  .dashboard-task-modal-card{padding:20px 16px 18px;border-radius:24px}
  .dashboard-task-modal-header{padding-right:46px}
  .dashboard-task-form-grid{grid-template-columns:1fr}
  .dashboard-task-modal-actions{flex-direction:column-reverse;align-items:stretch}
  .dashboard-task-modal-actions .btn,.dashboard-task-modal-actions .add-task-submit{width:100%}
}


.login-hero-login{
    align-items:flex-start;
    justify-content:flex-start;
    padding:34px 34px 40px;
}
.login-hero-topbar{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:auto;
}
.login-hero-toplabel{
    font-size:2rem;
    line-height:1;
    font-weight:800;
    letter-spacing:-.03em;
    color:#ffffff;
    text-shadow:0 10px 28px rgba(15,23,42,.22);
}
.login-hero-mark-sm{
    width:56px;
    height:56px;
    border-radius:18px;
    font-size:1.45rem;
    box-shadow:0 10px 24px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.login-hero-lockup{
    position:relative;
    z-index:2;
    display:grid;
    justify-items:start;
    align-content:end;
    text-align:left;
    gap:0;
    margin-top:auto;
}
.login-hero-yd{
    font-size:6rem;
    line-height:.9;
    font-weight:800;
    letter-spacing:-.08em;
    color:#ffffff;
    text-shadow:0 12px 32px rgba(15,23,42,.22);
}
.login-hero-mgmt{
    font-size:3.05rem;
    line-height:1;
    font-weight:800;
    letter-spacing:-.05em;
    color:#ffffff;
    text-shadow:0 10px 24px rgba(15,23,42,.2);
}
@media (max-width:980px){
    .login-hero-login{
        min-height:300px;
        padding:28px;
    }
    .login-hero-toplabel{
        font-size:1.8rem;
    }
    .login-hero-yd{
        font-size:4.9rem;
    }
    .login-hero-mgmt{
        font-size:2.55rem;
    }
}
@media (max-width:640px){
    .login-hero-login{
        min-height:240px;
        padding:22px;
    }
    .login-hero-topbar{
        gap:12px;
    }
    .login-hero-toplabel{
        font-size:1.5rem;
    }
    .login-hero-mark-sm{
        width:48px;
        height:48px;
        border-radius:16px;
        font-size:1.2rem;
    }
    .login-hero-yd{
        font-size:3.8rem;
    }
    .login-hero-mgmt{
        font-size:2rem;
    }
}


.calendar-day-task-list{gap:14px}
.calendar-day-task-card{
  padding:18px 18px;
  border:1px solid #e4ebf5;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.calendar-day-task-card + .calendar-day-task-card{margin-top:0}
.calendar-day-task-card .check-toggle{margin-top:4px}
.calendar-day-task-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.calendar-day-task-head strong{
  font-size:1.12rem;
  line-height:1.35;
}
.calendar-task-detail-box{
  margin-top:12px;
  padding:14px 15px;
  border-radius:18px;
  border:1px solid #e8eef7;
  background:#ffffff;
}
.calendar-task-detail-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.82rem;
  font-weight:700;
  color:#2563eb;
  margin-bottom:8px;
}
.calendar-task-detail-box p{
  margin:0;
  color:#475569;
  line-height:1.7;
  white-space:normal;
  word-break:break-word;
}
@media (max-width: 760px){
  .calendar-day-task-card{
    padding:16px;
    border-radius:20px;
  }
  .calendar-day-task-head{
    flex-direction:column;
    align-items:flex-start;
  }
}
