:root{--wine:#9E2A2D;--dark:#392C2D;--bg:#f7f5f5;--line:#e6dddd;--text:#2b2424;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--wine);text-decoration:none}.topbar{height:72px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 24px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--dark)}.brand img{height:42px;width:auto}.shell{display:flex;min-height:calc(100vh - 72px)}.sidebar{width:220px;background:var(--dark);padding:22px 14px;display:flex;flex-direction:column;gap:6px}.sidebar a{color:#fff;padding:11px 12px;border-radius:8px}.sidebar a:hover{background:rgba(255,255,255,.09)}.content{flex:1;padding:28px;max-width:1400px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.card,.panel,.login-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.card{display:flex;flex-direction:column;gap:10px}.card span{font-size:28px;color:var(--wine);font-weight:700}.login-card{max-width:520px;margin:10vh auto;text-align:center}.button{display:inline-block;border:0;border-radius:9px;padding:11px 16px;cursor:pointer}.button.primary{background:var(--wine);color:#fff}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px}table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field input,.field select,.field textarea{padding:10px;border:1px solid #cbbbbb;border-radius:8px}.required,.error{color:var(--wine)}.required-note{font-size:13px;color:#6d5d5d}.flash{padding:12px 14px;border-radius:8px;margin-bottom:14px;background:#eee}.flash.error{background:#ffe7e7}.flash.success{background:#e9f6ea}@media(max-width:800px){.shell{display:block}.sidebar{width:100%;flex-direction:row;overflow-x:auto}.content{padding:18px}.cards{grid-template-columns:1fr}.topbar{padding:10px 14px}.userbox{font-size:12px}.page-head{align-items:flex-start;flex-direction:column}}
.logout-form{display:inline}.link-button{background:none;border:0;padding:0;color:var(--wine);font:inherit;cursor:pointer}

.timer-clock{font-size:42px;font-weight:700;color:var(--wine);letter-spacing:2px;margin:12px 0}.timer-panel{border-left:5px solid var(--wine)}.compact-panel{margin:18px 0;padding:14px}[hidden]{display:none!important}

.report-cards{grid-template-columns:repeat(6,minmax(0,1fr))}.report-grid{display:grid;grid-template-columns:1fr 2fr;gap:16px}.report-links{display:flex;flex-wrap:wrap;gap:10px}.report-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.report-filters label{display:flex;flex-direction:column;gap:6px}.report-filters input[type="date"]{padding:9px;border:1px solid #cbbbbb;border-radius:8px}@media(max-width:1100px){.report-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}}@media(max-width:800px){.report-cards{grid-template-columns:1fr}.report-filters{align-items:stretch}}


/* Login */
.auth-page{--wine:#862224;--dark:#1c1111;background:#f4f1f1}.auth-page .topbar{height:78px}.auth-page .content{max-width:none;width:100%;padding:40px}.auth-layout{width:min(1120px,100%);margin:24px auto;display:grid;grid-template-columns:1.05fr .95fr;min-height:640px;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 22px 60px rgba(57,44,45,.10)}.auth-brand-panel{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:54px;background:linear-gradient(145deg,#1c1111 0%,#2b1919 100%);color:#fff}.auth-brand-panel:after{content:"";position:absolute;right:-90px;bottom:-120px;width:320px;height:320px;border:55px solid rgba(134,34,36,.42);border-radius:50%}.auth-logo{position:relative;z-index:1;width:min(360px,82%);height:auto;background:#fff;border-radius:12px;padding:14px 18px}.auth-brand-copy{position:relative;z-index:1;max-width:470px}.auth-eyebrow,.auth-kicker{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.auth-eyebrow{color:#e6c5c6}.auth-brand-copy h1{font-size:40px;line-height:1.12;margin:14px 0 18px;color:#fff}.auth-brand-copy p{font-size:17px;line-height:1.65;color:#eadfe0;margin:0}.auth-corporate-note{position:relative;z-index:1;margin:0;color:#d9cbcc;font-size:13px}.auth-card{display:flex;flex-direction:column;justify-content:center;padding:58px 64px}.auth-card-head{margin-bottom:28px}.auth-kicker{color:var(--wine)}.auth-card h2{font-size:36px;line-height:1.15;margin:8px 0 10px;color:var(--dark)}.auth-card-head p{margin:0;color:#6c5f60;line-height:1.55}.auth-form{display:flex;flex-direction:column;gap:18px}.auth-field{display:flex;flex-direction:column;gap:7px}.auth-field label{font-weight:700;color:var(--dark);font-size:14px}.auth-field input{width:100%;height:48px;border:1px solid #d5c9ca;border-radius:10px;padding:0 14px;font-size:15px;background:#fff;color:var(--text);transition:border-color .2s,box-shadow .2s}.auth-field input:focus{outline:none;border-color:var(--wine);box-shadow:0 0 0 3px rgba(134,34,36,.12)}.field-error{font-size:13px;color:var(--wine)}.auth-form-error{border:1px solid #efc1c3;background:#fff2f2;color:#872023;border-radius:10px;padding:11px 13px}.auth-form-error p{margin:0}.auth-submit{height:48px;border:0;border-radius:10px;background:var(--wine);color:#fff;font-size:15px;font-weight:800;cursor:pointer;transition:transform .15s,background .15s}.auth-submit:hover{background:#6f1b1d;transform:translateY(-1px)}.auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0;color:#98898a;font-size:13px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e5dddd;flex:1}.auth-google{height:48px;border:1px solid #d5c9ca;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--dark);font-weight:700;background:#fff}.auth-google:hover{border-color:#b9a8aa;background:#fcfafa}.google-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-weight:900;font-size:16px;color:#4285F4}.auth-help{font-size:12px;line-height:1.5;color:#817374;margin:18px 0 0}.auth-page .brand img{height:38px}.auth-page .brand span{font-size:15px}@media(max-width:900px){.auth-page .content{padding:20px}.auth-layout{grid-template-columns:1fr;min-height:auto}.auth-brand-panel{padding:34px;gap:50px}.auth-brand-copy h1{font-size:30px}.auth-card{padding:38px 34px}.auth-corporate-note{display:none}}@media(max-width:520px){.auth-page .topbar{height:68px}.auth-page .brand img{height:30px}.auth-page .content{padding:12px}.auth-layout{margin:8px auto;border-radius:16px}.auth-brand-panel{padding:26px;gap:34px}.auth-logo{width:82%;padding:10px 12px}.auth-brand-copy h1{font-size:25px}.auth-brand-copy p{font-size:15px}.auth-card{padding:30px 24px}.auth-card h2{font-size:30px}}

/* Login: fit the form to the available viewport height without clipping errors or zoomed text. */
.auth-page .topbar{height:72px}
.auth-page .shell{min-height:calc(100vh - 72px);min-height:calc(100dvh - 72px)}
.auth-page .content{display:flex;align-items:center;justify-content:center;padding:clamp(12px,2.5vh,24px) clamp(16px,3vw,40px)}
.auth-layout{margin:0 auto;min-height:0}
.auth-brand-panel{padding:clamp(24px,3vw,46px)}
.auth-logo{width:min(320px,82%)}
.auth-brand-copy h1{font-size:clamp(28px,2.4vw,38px);margin:12px 0 14px}
.auth-brand-copy p{font-size:16px;line-height:1.5}
.auth-card{padding:clamp(24px,3vw,46px) clamp(28px,3vw,50px)}
.auth-card-head{margin-bottom:18px}
.auth-card h2{font-size:clamp(28px,2.3vw,34px);margin:6px 0 8px}
.auth-card-head p{line-height:1.45}
.auth-form{gap:14px}
.auth-field input,.auth-submit,.auth-google{height:46px}
.auth-divider{margin:16px 0}
.auth-help{margin-top:14px}
@media (min-width:721px) and (max-width:900px){
  .auth-layout{grid-template-columns:1.05fr .95fr}
  .auth-brand-panel{gap:0}
  .auth-card{padding:26px}
  .auth-brand-copy h1{font-size:28px}
}
@media (min-width:721px) and (max-height:680px){
  .auth-page .content{padding-top:10px;padding-bottom:10px}
  .auth-brand-panel,.auth-card{padding-top:20px;padding-bottom:20px}
  .auth-card-head{margin-bottom:10px}
  .auth-form{gap:10px}
  .auth-field input,.auth-submit,.auth-google{height:42px}
  .auth-divider{margin:10px 0}
  .auth-help{margin-top:10px}
}
@media (max-width:720px){
  .auth-page .topbar{height:68px}
  .auth-page .shell{min-height:calc(100vh - 68px);min-height:calc(100dvh - 68px)}
  .auth-page .content{padding:12px}
  .auth-layout{grid-template-columns:1fr;border-radius:16px}
  .auth-brand-panel{padding:18px 24px;gap:0}
  .auth-logo{width:min(200px,65%);padding:9px 12px}
  .auth-brand-copy,.auth-corporate-note{display:none}
  .auth-card{padding:24px}
}
@media (max-width:520px){
  .auth-page .content{padding:10px}
  .auth-brand-panel{padding:14px 20px}
  .auth-card{padding:22px 20px}
  .auth-card h2{font-size:28px}
}

.auth-notice{position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #e7d8d8;border-radius:18px;background:#fff;color:var(--dark);box-shadow:0 24px 70px rgba(28,17,17,.24);overflow:auto;z-index:100}
.auth-notice::backdrop{background:rgba(28,17,17,.55);backdrop-filter:blur(3px)}
.auth-notice-inner{padding:30px;text-align:center}
.auth-notice-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 16px;border-radius:50%;background:#f9e8e8;color:var(--wine);font-size:25px;font-weight:800}
.auth-notice h2{margin:0 0 10px;font-size:24px;line-height:1.2}
.auth-notice-message{margin-bottom:22px;color:#5e5151;font-size:15px;line-height:1.5}
.auth-notice-message p{margin:0 0 8px}
.auth-notice-message p:last-child{margin-bottom:0}
.auth-notice-dismiss{min-height:44px;width:100%;border:0;border-radius:10px;background:var(--wine);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.auth-notice-dismiss:hover{background:#6f1b1d}
.auth-notice-dismiss:focus-visible{outline:3px solid #bb7778;outline-offset:3px}
@media (max-width:520px){.auth-notice-inner{padding:24px}}

.auth-field.is-invalid input{border-color:#ad393b;background:#fffafa}
.auth-field.is-invalid input:focus{box-shadow:0 0 0 3px rgba(134,34,36,.15)}
.auth-field .field-error{line-height:1.35}

.auth-success-shell{min-height:calc(100dvh - 72px);display:grid;place-items:center;padding:24px}
.auth-success-card{width:min(480px,100%);padding:clamp(32px,5vw,52px);border:1px solid #eadcdb;border-radius:24px;background:#fff;text-align:center;box-shadow:0 25px 65px rgba(57,44,45,.12)}
.auth-success-mark{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 26px;border-radius:20px;background:#f8e8e8;color:var(--wine);font-size:37px;font-weight:800}
.auth-success-card h1{margin:10px 0 12px;font-size:clamp(29px,5vw,38px);color:var(--dark);letter-spacing:-.025em}
.auth-success-card p{margin:0;color:#6c5f60;line-height:1.55}
.auth-success-progress{height:6px;margin:30px 0 22px;border-radius:5px;background:#f1e6e5;overflow:hidden}
.auth-success-progress:before{content:"";display:block;width:100%;height:100%;background:var(--wine);transform-origin:left;animation:auth-success-loading 2s linear forwards}
.auth-success-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--wine)}
.auth-success-link:focus-visible{outline:3px solid #bb7778;outline-offset:4px;border-radius:3px}
@keyframes auth-success-loading{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.auth-success-progress:before{animation:none;transform:scaleX(1)}}

/* Workspace */
.app-page{--wine:#862224;--dark:#1c1111;--bg:#f8f6f5;--line:#eae3e1;background:var(--bg);cursor:default}
.app-page .topbar{height:76px;padding:0 36px;box-shadow:0 1px 8px rgba(28,17,17,.03);position:relative;z-index:2}
.app-page .brand img{height:40px;max-width:min(180px,50vw)}
.app-page .userbox{display:flex;align-items:center;gap:16px;color:#625858;font-size:13px;min-width:0}
.app-page .user-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-page .user-avatar{display:grid;place-items:center;flex:none;background:#f5e8e7;color:var(--wine);font-weight:800;width:32px;height:32px;border-radius:50%}
.app-page .link-button{font-weight:700;border-left:1px solid var(--line);padding-left:15px}
.app-page .shell{min-height:calc(100vh - 76px)}
.app-page .sidebar{width:258px;flex:none;background:linear-gradient(165deg,#302221,#211717 80%);padding:26px 14px 16px;gap:0;position:sticky;top:0;align-self:flex-start;height:calc(100vh - 76px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#69504d transparent}
.sidebar-intro{display:flex;align-items:center;gap:11px;margin:2px 11px 29px;color:#fff}
.sidebar-intro-mark{height:33px;width:4px;border-radius:4px;background:#be6864;box-shadow:0 0 14px rgba(190,104,100,.3)}
.sidebar-intro strong,.sidebar-intro small{display:block}.sidebar-intro strong{font-size:14px;letter-spacing:.01em}.sidebar-intro small{font-size:11px;margin-top:4px;color:#bcaead}
.sidebar-nav{display:flex;flex-direction:column;gap:17px}.nav-group{display:flex;flex-direction:column;gap:3px}
.nav-heading{font-size:10px;letter-spacing:.16em;font-weight:800;color:#b9aaa6;margin:0 14px 8px}
.app-page .sidebar .nav-item{display:flex;align-items:center;gap:12px;padding:9px 12px;min-height:39px;color:#dfd4d2;font-size:13px;font-weight:500;border:1px solid transparent;border-radius:9px;transition:background .18s,color .18s,transform .18s}
.app-page .sidebar .nav-item:hover{color:#fff;background:rgba(255,255,255,.085);transform:translateX(2px)}
.app-page .sidebar .nav-item.is-active{color:#fff;background:linear-gradient(90deg,rgba(158,42,45,.52),rgba(158,42,45,.13));border-color:rgba(235,161,154,.13);font-weight:700;box-shadow:inset 3px 0 #d58c87}
.nav-glyph{display:inline-grid;place-items:center;width:24px;height:24px;flex:none;color:#ceb7b1;font-family:Arial,sans-serif;font-size:19px;line-height:1}.is-active .nav-glyph{color:#fff}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.12);margin-top:auto;padding:19px 12px 2px;font-size:11px;color:#bcaead;display:flex;align-items:center;gap:8px}.sidebar-footer-dot{width:6px;height:6px;border-radius:50%;background:#d7948c}
.app-page .content{width:0;max-width:none;min-width:0;padding:38px clamp(22px,4vw,64px) 72px}
.app-page .content > :not(.dashboard){max-width:1480px}.app-page .content .page-head{margin-bottom:18px}.app-page .content h1{color:#211817;letter-spacing:-.03em}
.app-page .panel,.app-page .card{border-color:#eae2df;box-shadow:0 5px 22px rgba(32,20,20,.025)}
.app-page :is(a,button,input,select,textarea):focus-visible{outline:3px solid #c47b74;outline-offset:3px}
.app-page input,.app-page textarea,.app-page [contenteditable="true"]{cursor:text}
.dashboard{max-width:1420px;margin:auto}.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:10px 0 28px}
.eyebrow{color:#9b5651;font-size:10px;font-weight:800;letter-spacing:.18em}.eyebrow-separator{color:#cbbfbb;margin:0 7px}
.dashboard-heading h1{font-size:clamp(28px,3vw,40px);margin:10px 0 8px;line-height:1.12}.title-period{color:var(--wine)}.dashboard-heading p{margin:0;color:#766b68;font-size:14px;line-height:1.5}
.app-page .dashboard-create{padding:13px 20px;font-weight:700;white-space:nowrap;box-shadow:0 8px 19px rgba(134,34,36,.16)}.dashboard-create span{font-size:19px;vertical-align:-1px;margin-right:4px}
.dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.summary-card{background:#fff;border:1px solid #eae2df;border-radius:16px;padding:22px 24px 19px;min-width:0;box-shadow:0 12px 35px rgba(34,20,20,.04);position:relative;overflow:hidden}.summary-card:before{position:absolute;content:"";height:3px;left:24px;right:24px;top:0;background:linear-gradient(90deg,#862224,#e6c5c2);border-radius:0 0 3px 3px}
.summary-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;color:#5f5351;font-size:13px;font-weight:700}.summary-symbol{display:grid;place-items:center;border-radius:10px;background:#f7efed;width:36px;height:36px;flex:none;color:#862224;font-size:23px}.summary-card>strong{display:block;font-size:40px;letter-spacing:-.05em;color:#251918;margin:2px 0 14px;line-height:1.15}.summary-foot{border-top:1px solid #f0eae7;padding-top:13px;color:#897c79;font-size:11px;display:flex;justify-content:space-between}.summary-foot span{font-size:16px;color:#b5928e}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.85fr);gap:18px;align-items:start}
.dashboard-panel{background:#fff;border:1px solid #eae2df;border-radius:16px;box-shadow:0 12px 35px rgba(34,20,20,.035);padding:26px 27px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.panel-heading h2{margin:8px 0 0;font-size:20px;letter-spacing:-.025em;color:#2c2020}.panel-heading-symbol{color:#ad6e69;font-size:22px}
.action-list{border-top:1px solid #f0eae7}.action-row{display:flex;align-items:center;gap:15px;padding:16px 2px;border-bottom:1px solid #f0eae7;color:#312625;transition:background .18s}.action-row:hover{background:#fcf8f7}.action-row>span:nth-child(2){flex:1;min-width:0}.action-row strong,.action-row small{display:block}.action-row strong{font-size:14px}.action-row small{color:#807471;margin-top:5px;font-size:12px}.action-symbol{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:11px;background:#f7eeee;color:#892b2c;font-size:22px}.action-arrow{color:#9d5c58;font-size:20px}.empty-actions{font-size:13px;color:#807471}
.integration-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #f0eae7;padding:17px 0}.integration-row strong,.integration-row small{display:block}.integration-row strong{font-size:13px;color:#302322}.integration-row small{color:#887b78;margin-top:5px;font-size:11px}.status-pill{font-size:10px;color:#735a56;background:#f4eeec;border-radius:20px;padding:6px 10px;font-weight:800;white-space:nowrap}.status-pill.is-ok{background:#e6f3e9;color:#2f7244}.status-pill.is-error{background:#fce9e7;color:#992d30}.integration-note{border-top:1px solid #f0eae7;color:#887b78;font-size:12px;line-height:1.6;margin:0;padding-top:14px}
.app-page .panel{margin-bottom:18px}.row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;white-space:nowrap}.row-actions form{display:inline}.action-toggle{color:#862224;background:#f8efef;border:0;border-radius:6px;padding:6px 9px;cursor:pointer;font-size:12px;font-weight:700}.action-toggle:hover{background:#eddddd}.state-chip{border-radius:20px;padding:5px 9px;background:#ebf4ed;color:#326947;font-size:11px;font-weight:700;white-space:nowrap}.state-chip.inactive{background:#f4edec;color:#7e6562}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:1fr}.app-page .sidebar{width:230px}.app-page .content{padding:30px}}
@media(max-width:800px){.app-page .shell{display:block}.app-page .sidebar{position:static;width:100%;height:auto;padding:11px 12px;display:block;overflow-x:auto}.sidebar-intro,.sidebar-footer,.nav-heading{display:none}.sidebar-nav{flex-direction:row;gap:8px;width:max-content}.nav-group{flex-direction:row;gap:5px}.app-page .sidebar .nav-item{white-space:nowrap;padding:7px 11px}.app-page .content{width:100%;padding:24px 18px 48px}.dashboard-summary{gap:10px}.summary-card{padding:18px}.summary-card:before{left:18px;right:18px}}
@media(max-width:630px){.app-page .topbar{padding:0 16px;height:66px}.app-page .shell{min-height:calc(100vh - 66px)}.app-page .brand img{height:32px}.app-page .userbox{gap:8px}.app-page .user-avatar,.app-page .user-email{display:none}.app-page .link-button{border:0;padding:0}.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-summary{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.dashboard-panel{padding:20px}.summary-card>strong{font-size:34px}.app-page table{display:block;overflow-x:auto}.dashboard-heading h1{font-size:30px}}
