:root{color-scheme:dark;--bg:#0b0d11;--surface:#111419;--surface-2:#171b21;--surface-3:#1b2027;--line:#292e36;--line-light:#343a43;--text:#f4f4f2;--muted:#a0a6b0;--subtle:#737b87;--gold:#f5b400;--gold-soft:#d6ad57;--gold-wash:rgba(245,180,0,.12);--violet:#a990ff;--pink:#d951a4;--red:#ed5155;--green:#66c78d;--radius:18px;--display:'Space Grotesk',sans-serif;--body:'Inter',sans-serif;font-family:var(--body);background:var(--bg);color:var(--text);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 76% -12%,rgba(245,180,0,.055),transparent 31%),var(--bg)}button,input,select{font:inherit}button{color:inherit}.tm-sprite{position:absolute;width:0;height:0;overflow:hidden}.tm-shell{min-height:100vh}.tm-sidebar{position:fixed;inset:0 auto 0 0;z-index:30;display:flex;width:252px;flex-direction:column;padding:23px 15px 16px;border-right:1px solid rgba(255,255,255,.06);background:#0e1014}.tm-brand{display:flex;align-items:center;gap:12px;padding:0 13px;color:var(--text);text-decoration:none}.tm-brand-mark{width:38px;height:35px;color:var(--gold);flex:none}.tm-brand span{display:grid;gap:2px}.tm-brand strong{font:700 15px var(--display);letter-spacing:.13em}.tm-brand small{color:var(--muted);font-size:11px}.tm-side-caption{margin:43px 13px 12px;color:#68717c;font-size:10px;font-weight:700;letter-spacing:.15em}.tm-nav{display:grid;gap:4px}.tm-nav-link{display:flex;min-height:44px;align-items:center;gap:13px;padding:0 13px;border:1px solid transparent;border-radius:11px;background:transparent;color:#a7adb7;text-align:left;cursor:pointer;transition:background .2s,border-color .2s,color .2s}.tm-nav-link:hover{background:rgba(255,255,255,.035);color:#fff}.tm-nav-link.is-active{border-color:rgba(245,180,0,.19);background:linear-gradient(100deg,rgba(245,180,0,.13),rgba(245,180,0,.045));color:#f2c348}.tm-nav-link>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.tm-nav-link span:nth-child(2){flex:1;font-size:13px;font-weight:550}.tm-nav-count{display:grid;min-width:21px;height:21px;place-items:center;border-radius:50%;background:#232831;color:#bbc1ca;font-size:10px}.tm-plan-icon{display:grid;width:19px;height:19px;place-items:center;color:var(--gold);font-size:20px}.tm-side-caption-bottom{margin-top:30px}.tm-sidebar-bottom{display:grid;gap:15px;margin-top:auto}.tm-trial-card{display:flex;align-items:center;gap:10px;padding:13px 11px;border:1px solid rgba(245,180,0,.2);border-radius:13px;background:linear-gradient(135deg,rgba(245,180,0,.12),rgba(245,180,0,.035))}.tm-trial-icon{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:rgba(245,180,0,.15);color:var(--gold)}.tm-trial-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.tm-trial-card>div{display:grid;flex:1;gap:3px}.tm-trial-card strong{font-size:11px}.tm-trial-card small{color:var(--muted);font-size:9px}.tm-trial-days{display:grid;width:26px;height:26px;place-items:center;border:1px solid rgba(245,180,0,.25);border-radius:8px;color:#f3c74f;font-size:11px;font-weight:700}.tm-profile{display:flex;align-items:center;gap:10px;padding:10px;border:0;border-top:1px solid rgba(255,255,255,.07);background:transparent;text-align:left;cursor:pointer}.tm-avatar{display:grid;width:35px;height:35px;place-items:center;border:1px solid rgba(245,180,0,.23);border-radius:50%;background:#201d15;color:#f2c445;font:700 11px var(--display)}.tm-profile-copy{display:grid;flex:1;gap:3px}.tm-profile-copy strong{font-size:11px}.tm-profile-copy small{color:var(--muted);font-size:9px}.tm-profile-menu{color:#8f969f;letter-spacing:2px}.tm-main-column{min-height:100vh;margin-left:252px}.tm-topbar{position:sticky;top:0;z-index:20;display:flex;height:69px;align-items:center;justify-content:space-between;padding:0 clamp(23px,4.2vw,62px);border-bottom:1px solid rgba(255,255,255,.055);background:rgba(11,13,17,.88);backdrop-filter:blur(18px)}.tm-breadcrumb{display:flex;align-items:center;gap:9px;color:#8f96a0;font-size:12px}.tm-breadcrumb svg{width:13px;height:13px;fill:none;stroke:#636b76;stroke-width:1.7}.tm-breadcrumb strong{color:#eee;font-weight:600}.tm-top-actions{display:flex;align-items:center;gap:17px}.tm-online{display:flex;align-items:center;gap:7px;color:#8d969f;font-size:10px}.tm-online i{width:7px;height:7px;border-radius:50%;background:#64c88b;box-shadow:0 0 9px #64c88b66}.tm-signin{padding:9px 16px;border:1px solid rgba(245,180,0,.35);border-radius:9px;background:rgba(245,180,0,.08);color:#f0c242;font-size:11px;font-weight:700;cursor:pointer}.tm-signin:hover{background:rgba(245,180,0,.16)}.tm-mobile-menu{display:none}.tm-main{width:min(1280px,100%);margin:0 auto;padding:38px clamp(23px,4.2vw,62px) 72px}.tm-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.tm-eyebrow{margin:0 0 9px;color:#e3b641;font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}.tm-page-head h1{margin:0;font:600 clamp(26px,3vw,36px)/1.1 var(--display);letter-spacing:-.045em}.tm-page-lead{max-width:630px;margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.tm-date-label{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;color:#c2c6cc;font-size:11px;white-space:nowrap}.tm-date-label svg{width:15px;height:15px;fill:none;stroke:var(--gold);stroke-width:1.7}.tm-grid{display:grid;gap:17px}.tm-grid-home{grid-template-columns:minmax(0,1.62fr) minmax(280px,.8fr)}.tm-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,rgba(255,255,255,.026),transparent 55%),var(--surface)}.tm-card-pad{padding:21px}.tm-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.tm-card-title h2,.tm-card-title h3{margin:0;font:600 15px var(--display);letter-spacing:-.02em}.tm-card-title p{margin:5px 0 0;color:var(--muted);font-size:11px}.tm-card-icon{display:grid;width:35px;height:35px;place-items:center;border:1px solid rgba(245,180,0,.16);border-radius:10px;background:rgba(245,180,0,.07);color:var(--gold)}.tm-card-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tm-status-card{position:relative;display:flex;min-height:245px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:24px;border-color:rgba(245,180,0,.26);background:radial-gradient(ellipse at 87% 20%,rgba(245,180,0,.13),transparent 34%),linear-gradient(145deg,#171a20,#111419)}.tm-status-card:after{position:absolute;right:-75px;bottom:-160px;width:310px;height:310px;border:1px solid rgba(245,180,0,.11);border-radius:50%;box-shadow:0 0 0 27px rgba(245,180,0,.018),0 0 0 55px rgba(245,180,0,.016);content:""}.tm-status-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.tm-status-date{color:#b8bec7;font-size:11px}.tm-cycle-chip{padding:7px 10px;border:1px solid rgba(245,180,0,.22);border-radius:99px;background:rgba(245,180,0,.075);color:#e6bd50;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.tm-state{position:relative;z-index:1;margin:17px 0 4px;font:600 clamp(36px,5vw,55px)/1 var(--display);letter-spacing:-.055em}.tm-state.is-rest{color:#e5e8ed}.tm-state.is-work{color:#f4bd2f}.tm-state-meta{position:relative;z-index:1;display:flex;align-items:center;gap:8px;color:#bec3cb;font-size:12px}.tm-state-dot{width:8px;height:8px;border-radius:50%;background:#737e8a}.tm-state-dot.is-work{background:var(--gold);box-shadow:0 0 10px rgba(245,180,0,.48)}.tm-next-line{position:relative;z-index:1;display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:16px;border-top:1px solid rgba(255,255,255,.085);color:#aeb4bd;font-size:10px}.tm-next-line strong{color:#e5e7ea;font-weight:600}.tm-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:15px}.tm-stat-card{padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.tm-stat-label{display:flex;align-items:center;gap:7px;color:#a1a8b1;font-size:10px}.tm-stat-label svg{width:14px;height:14px;fill:none;stroke:var(--gold);stroke-width:1.6}.tm-stat-value{margin-top:8px;font:600 19px var(--display);letter-spacing:-.03em}.tm-stat-detail{margin-top:3px;color:#7f8791;font-size:9px}.tm-week-card{padding:18px 20px}.tm-week-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.tm-week-heading h3{margin:0;font:600 14px var(--display)}.tm-week-heading a{color:#e7bd50;font-size:10px;text-decoration:none}.tm-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.tm-week-day{display:grid;gap:7px;justify-items:center;padding:9px 3px;border:1px solid transparent;border-radius:10px;color:#9aa1ab}.tm-week-day.is-today{border-color:rgba(245,180,0,.28);background:rgba(245,180,0,.08);color:#f4c547}.tm-week-day span{font-size:9px;text-transform:uppercase}.tm-week-day strong{font:600 15px var(--display);color:#e5e7eb}.tm-week-day i{width:5px;height:5px;border-radius:50%;background:#66717c}.tm-week-day.is-work i{background:var(--gold)}.tm-upcoming-list{display:grid;gap:0}.tm-upcoming-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.06)}.tm-upcoming-item:first-child{padding-top:0;border-top:0}.tm-upcoming-date{display:grid;width:39px;height:40px;place-items:center;align-content:center;gap:2px;border:1px solid var(--line);border-radius:10px;color:#f0c249}.tm-upcoming-date strong{font:600 15px var(--display)}.tm-upcoming-date small{color:#a1a6af;font-size:8px;text-transform:uppercase}.tm-upcoming-copy{display:grid;flex:1;gap:4px}.tm-upcoming-copy strong{font-size:11px;font-weight:600}.tm-upcoming-copy small{color:#858d97;font-size:9px}.tm-upcoming-kind{width:7px;height:7px;border-radius:50%;background:var(--violet)}.tm-empty{padding:18px;border:1px dashed #343a43;border-radius:12px;color:#9aa1ab;text-align:center;font-size:11px;line-height:1.6}.tm-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:15px}.tm-quick-card{display:flex;min-height:100px;align-items:flex-start;flex-direction:column;justify-content:space-between;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface);text-align:left;cursor:pointer;transition:transform .2s,border-color .2s}.tm-quick-card:hover{transform:translateY(-2px);border-color:rgba(245,180,0,.36)}.tm-quick-card>svg{width:18px;height:18px;fill:none;stroke:var(--gold-soft);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tm-quick-card strong{font-size:10px}.tm-quick-card small{color:#8f969f;font-size:9px}.tm-notice{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border:1px solid rgba(169,144,255,.18);border-radius:12px;background:rgba(169,144,255,.06);color:#b9b0d7;font-size:10px;line-height:1.55}.tm-notice svg{width:16px;height:16px;flex:none;fill:none;stroke:#b49cff;stroke-width:1.8}.tm-calendar-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.68fr);gap:16px}.tm-calendar-card{padding:20px}.tm-cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.tm-cal-month{display:flex;align-items:center;gap:13px}.tm-cal-month h2{min-width:176px;margin:0;text-align:center;font:600 17px var(--display);letter-spacing:.035em;text-transform:capitalize}.tm-icon-button{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:#ced2d8;cursor:pointer}.tm-icon-button:hover{border-color:#6a5a32;color:var(--gold)}.tm-icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.tm-cal-today{padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:transparent;color:#bfc4cc;font-size:10px;cursor:pointer}.tm-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:15px;color:#969da7;font-size:9px}.tm-legend span{display:flex;align-items:center;gap:6px}.tm-legend i{width:7px;height:7px;border-radius:50%;background:var(--gold)}.tm-legend .legend-night{background:var(--violet)}.tm-legend .legend-vacation{background:var(--pink)}.tm-legend .legend-holiday{background:var(--red)}.tm-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid #292e36;border-radius:13px}.tm-week-label{display:grid;min-height:34px;place-items:center;border-right:1px solid rgba(255,255,255,.045);border-bottom:1px solid var(--line);background:#14171c;color:#848c96;font-size:9px}.tm-day{position:relative;display:flex;min-height:77px;flex-direction:column;justify-content:space-between;padding:8px 7px;border-right:1px solid rgba(255,255,255,.052);border-bottom:1px solid rgba(255,255,255,.052);background:#111419;color:#e5e8ec}.tm-day:nth-child(7n){border-right:0}.tm-day.is-empty{background:#0e1014}.tm-day.is-work{background:rgba(245,180,0,.19)}.tm-day.is-night{background:rgba(111,94,187,.29)}.tm-day.is-vacation{background:rgba(217,81,164,.2)}.tm-day.is-today{outline:2px solid var(--gold);outline-offset:-2px;z-index:2}.tm-day-number{font:500 16px var(--display)}.tm-day-type{align-self:flex-end;color:#f2c237;font-size:8px;font-weight:700}.tm-day.is-night .tm-day-type{color:#b8a5ff}.tm-holiday-tag{position:absolute;top:0;right:0;left:0;padding:3px 4px;background:#b92730;color:#fff;text-align:center;font-size:7px;font-weight:750;letter-spacing:.04em}.tm-day.has-holiday .tm-day-number{margin-top:13px}.tm-day.has-holiday.is-work .tm-day-type{padding-bottom:0}.tm-side-stack{display:grid;align-content:start;gap:14px}.tm-control-card{padding:18px}.tm-control-card h3{margin:0;font:600 14px var(--display)}.tm-control-card>p{margin:7px 0 16px;color:#9198a2;font-size:10px;line-height:1.5}.tm-cycle-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tm-cycle-choice{min-height:37px;border:1px solid var(--line);border-radius:9px;background:#14171c;color:#c2c7ce;font-size:10px;cursor:pointer}.tm-cycle-choice.is-selected{border-color:rgba(245,180,0,.45);background:rgba(245,180,0,.1);color:#f5c440}.tm-toggle-row{display:flex;gap:7px;margin-top:15px}.tm-toggle-choice{flex:1;min-height:35px;border:1px solid var(--line);border-radius:8px;background:#14171c;color:#b8bec7;font-size:9px;cursor:pointer}.tm-toggle-choice.is-selected{border-color:rgba(245,180,0,.35);background:rgba(245,180,0,.08);color:#f3c342}.tm-control-meta{display:grid;gap:9px;margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.07)}.tm-control-meta div{display:flex;justify-content:space-between;gap:10px;color:#858d97;font-size:9px}.tm-control-meta strong{color:#d0d4d9;font-weight:550}.tm-form-card{padding:21px}.tm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tm-field{display:grid;gap:7px;color:#c4c9d0;font-size:10px;font-weight:600}.tm-field input,.tm-field select{width:100%;min-height:42px;padding:0 12px;border:1px solid #303640;border-radius:9px;outline:none;background:#101318;color:#f0f1f3;font-size:11px}.tm-field input::placeholder{color:#666e79}.tm-field input:focus,.tm-field select:focus{border-color:#a78219;box-shadow:0 0 0 3px rgba(245,180,0,.09)}.tm-field-wide{grid-column:1/-1}.tm-button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:1px solid transparent;border-radius:9px;font-size:10px;font-weight:700;cursor:pointer;transition:transform .18s,background .18s,border-color .18s}.tm-button:hover{transform:translateY(-1px)}.tm-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tm-button-primary{background:linear-gradient(135deg,#f8c84b,#e9ad14);color:#18140b;box-shadow:0 7px 18px rgba(245,180,0,.13)}.tm-button-secondary{border-color:#383e48;background:#161a20;color:#e8e9eb}.tm-button-danger{border-color:rgba(237,81,85,.25);background:rgba(237,81,85,.08);color:#f28b8e}.tm-button-small{min-height:32px;padding:0 10px;font-size:9px}.tm-inline-form{display:flex;gap:9px;margin-bottom:16px}.tm-inline-form .tm-field{flex:1}.tm-list{display:grid;gap:9px}.tm-list-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#14171c}.tm-check{width:18px;height:18px;accent-color:var(--gold);flex:none}.tm-list-copy{display:grid;flex:1;gap:4px;min-width:0}.tm-list-copy strong{overflow:hidden;color:#e6e8eb;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.tm-list-copy small{color:#9098a2;font-size:9px}.tm-list-meta{display:grid;justify-items:end;gap:3px;color:#e6bd52;font-size:9px}.tm-list-meta small{color:#828a94;font-size:8px}.tm-delete{display:grid;width:31px;height:31px;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#858d98;cursor:pointer}.tm-delete:hover{border-color:rgba(237,81,85,.22);background:rgba(237,81,85,.08);color:#f08286}.tm-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tm-bag-progress{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#14171c}.tm-bag-progress span{color:#a4abb4;font-size:10px}.tm-bag-progress strong{margin-left:auto;color:#e8bd4c;font:600 14px var(--display)}.tm-progress-track{width:90px;height:6px;overflow:hidden;border-radius:99px;background:#282d34}.tm-progress-track i{display:block;height:100%;border-radius:inherit;background:var(--gold);transition:width .3s}.tm-disclaimer{margin:15px 0 0;color:#747c87;font-size:9px;line-height:1.55}.tm-vacation-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px;padding:19px 20px;border:1px solid rgba(217,81,164,.2);border-radius:15px;background:linear-gradient(110deg,rgba(217,81,164,.1),rgba(23,27,33,.6))}.tm-vacation-banner strong{font:600 14px var(--display)}.tm-vacation-banner p{margin:5px 0 0;color:#a7a1ae;font-size:10px}.tm-vacation-dot{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:rgba(217,81,164,.12);color:#ec79bd}.tm-vacation-dot svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.tm-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tm-plan-card{position:relative;display:flex;min-height:228px;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.035),transparent 55%),var(--surface)}.tm-plan-card.is-featured{border-color:rgba(245,180,0,.44);box-shadow:0 0 0 1px rgba(245,180,0,.07),0 20px 45px rgba(0,0,0,.15)}.tm-plan-badge{position:absolute;top:14px;right:14px;padding:5px 8px;border-radius:99px;background:rgba(245,180,0,.12);color:#efc748;font-size:8px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.tm-plan-card>small{color:#b1a273;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.tm-plan-card h3{margin:13px 0 4px;font:600 28px var(--display);letter-spacing:-.04em}.tm-plan-card h3 span{color:#a7abb3;font:500 10px var(--body);letter-spacing:0}.tm-plan-card p{margin:0 0 19px;color:#9da4ae;font-size:10px;line-height:1.55}.tm-plan-card .tm-button{width:100%;margin-top:auto}.tm-plan-note{grid-column:1/-1;padding:13px 16px;border:1px solid var(--line);border-radius:11px;color:#9198a2;font-size:9px;line-height:1.6}.tm-settings-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,.7fr);gap:15px}.tm-setting-section{margin-top:22px;padding-top:20px;border-top:1px solid rgba(255,255,255,.07)}.tm-setting-section:first-of-type{margin-top:0;padding-top:0;border-top:0}.tm-setting-section h3{margin:0 0 5px;font:600 13px var(--display)}.tm-setting-section>p{margin:0 0 15px;color:#8e96a0;font-size:9px;line-height:1.5}.tm-setting-actions{display:flex;justify-content:flex-end;margin-top:18px}.tm-modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;overflow-y:auto;place-items:center;padding:20px;background:rgba(2,3,5,.77);backdrop-filter:blur(9px)}.tm-modal-backdrop[hidden]{display:none}.tm-auth-modal{position:relative;width:min(100%,440px);padding:30px;border:1px solid #393a39;border-radius:19px;background:radial-gradient(ellipse at 70% 0,rgba(245,180,0,.085),transparent 38%),#111419;box-shadow:0 28px 90px #0009}.tm-modal-close{position:absolute;top:13px;right:14px;width:31px;height:31px;border:1px solid var(--line);border-radius:9px;background:#171b20;color:#aeb4bc;font-size:20px;cursor:pointer}.tm-auth-brand{padding:0}.tm-auth-brand .tm-brand-mark{width:31px;height:29px}.tm-auth-brand strong{font-size:12px}.tm-auth-brand small{font-size:9px}.tm-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:25px 0 24px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#0c0e12}.tm-auth-tabs button{min-height:34px;border:0;border-radius:7px;background:transparent;color:#9299a3;font-size:10px;cursor:pointer}.tm-auth-tabs button.is-active{background:#20242b;color:#f0c342}.tm-auth-modal .tm-eyebrow{font-size:9px}.tm-auth-modal h2{margin:0;font:600 26px var(--display);letter-spacing:-.04em}.tm-auth-intro{margin:7px 0 20px;color:#9ca3ac;font-size:10px;line-height:1.6}.tm-auth-modal form{display:grid;gap:13px}.tm-auth-submit{width:100%;margin-top:4px}.tm-auth-note{margin:11px 0 0;color:#838b96;font-size:9px;line-height:1.55;text-align:center}.tm-auth-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:#747c87;font-size:8px;font-weight:700;letter-spacing:.12em}.tm-auth-divider:before,.tm-auth-divider:after{height:1px;flex:1;background:#2b3038;content:""}.tm-demo-button{width:100%}.tm-back-home{display:block;margin-top:18px;color:#949ba5;text-align:center;font-size:9px;text-decoration:none}.tm-back-home:hover{color:#f1c543}.tm-toast{position:fixed;right:22px;bottom:22px;z-index:120;max-width:min(390px,calc(100vw - 30px));padding:13px 16px;transform:translateY(14px);border:1px solid rgba(245,180,0,.28);border-radius:11px;background:#1c1b16;color:#f0d37a;font-size:10px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.tm-toast.is-visible{transform:translateY(0);opacity:1}.tm-mobile-nav{display:none}.tm-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1500px){.tm-main{padding-top:48px}.tm-day{min-height:91px}.tm-status-card{min-height:260px}}
@media(max-width:1100px){.tm-sidebar{width:222px}.tm-main-column{margin-left:222px}.tm-grid-home{grid-template-columns:minmax(0,1.3fr) minmax(255px,.8fr)}.tm-calendar-layout{grid-template-columns:1fr}.tm-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-day{min-height:68px}}
@media(max-width:900px){body{padding-bottom:calc(70px + env(safe-area-inset-bottom))}.tm-sidebar{width:min(300px,84vw);transform:translateX(-102%);transition:transform .25s ease;box-shadow:22px 0 50px #0008}.tm-sidebar.is-open{transform:translateX(0)}.tm-main-column{margin-left:0}.tm-topbar{height:60px;padding:0 18px}.tm-mobile-menu{display:grid;width:35px;height:35px;align-content:center;justify-items:center;gap:4px;border:1px solid var(--line);border-radius:9px;background:#15181e}.tm-mobile-menu span{width:15px;height:1.5px;background:#d9dde2}.tm-breadcrumb{margin-right:auto;margin-left:12px;font-size:10px}.tm-top-actions{gap:9px}.tm-online{font-size:0}.tm-online i{width:8px;height:8px}.tm-signin{padding:8px 11px;font-size:10px}.tm-main{padding:27px 18px 38px}.tm-page-head{align-items:flex-start;margin-bottom:20px}.tm-page-head h1{font-size:29px}.tm-grid-home{grid-template-columns:1fr}.tm-side-stack{grid-template-columns:1fr 1fr}.tm-mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:25;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 7px calc(7px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.09);background:rgba(13,15,19,.96);backdrop-filter:blur(16px)}.tm-mobile-nav button{display:grid;min-height:47px;align-content:center;justify-items:center;gap:4px;border:0;border-radius:9px;background:transparent;color:#858d98;font-size:8px}.tm-mobile-nav button.is-active{background:rgba(245,180,0,.1);color:#f2c348}.tm-mobile-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tm-plan-grid{grid-template-columns:1fr}.tm-settings-layout{grid-template-columns:1fr}.tm-day{min-height:64px;padding:7px 5px}.tm-day-number{font-size:14px}.tm-day-type{font-size:7px}.tm-holiday-tag{font-size:6px}}
@media(max-width:520px){.tm-topbar{padding-inline:13px}.tm-breadcrumb{gap:5px}.tm-breadcrumb>span{display:none}.tm-breadcrumb svg{display:none}.tm-main{padding:23px 13px 30px}.tm-page-head{gap:12px}.tm-page-head h1{font-size:26px}.tm-page-lead{font-size:11px}.tm-date-label{padding:8px 9px;font-size:9px}.tm-card{border-radius:15px}.tm-status-card{min-height:221px;padding:19px}.tm-state{font-size:40px}.tm-next-line{font-size:9px}.tm-stat-row{gap:7px}.tm-stat-card{padding:11px 9px}.tm-stat-label{font-size:8px}.tm-stat-label svg{width:12px;height:12px}.tm-stat-value{font-size:17px}.tm-stat-detail{font-size:8px}.tm-card-pad{padding:16px}.tm-week-card{padding:15px 12px}.tm-week-strip{gap:3px}.tm-week-day{padding-inline:1px}.tm-week-day span{font-size:8px}.tm-week-day strong{font-size:13px}.tm-quick-grid{gap:7px}.tm-quick-card{min-height:91px;padding:11px}.tm-quick-card strong{font-size:9px}.tm-quick-card small{font-size:8px}.tm-calendar-card{padding:12px 9px}.tm-cal-toolbar{gap:5px}.tm-cal-month{gap:4px}.tm-cal-month h2{min-width:132px;font-size:14px}.tm-icon-button{width:29px;height:29px}.tm-cal-today{padding:8px 9px;font-size:9px}.tm-legend{gap:8px;font-size:8px}.tm-week-label{min-height:29px;font-size:8px}.tm-day{min-height:51px;padding:5px 4px}.tm-day-number{font-size:12px}.tm-day-type{font-size:6px}.tm-holiday-tag{padding:2px 1px;font-size:5px}.tm-day.has-holiday .tm-day-number{margin-top:10px}.tm-side-stack{grid-template-columns:1fr}.tm-cycle-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.tm-cycle-choice{font-size:9px}.tm-form-grid{grid-template-columns:1fr}.tm-field-wide{grid-column:auto}.tm-inline-form{align-items:stretch;flex-direction:column}.tm-inline-form>.tm-button{min-height:41px}.tm-vacation-banner{padding:15px}.tm-list-item{gap:8px;padding:11px}.tm-list-copy strong{font-size:10px}.tm-list-copy small{font-size:8px}.tm-list-meta{font-size:8px}.tm-auth-modal{padding:24px 19px}.tm-toast{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));left:12px;max-width:none}.tm-profile-copy small{max-width:168px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.tm-forgot-password{justify-self:end;padding:0;border:0;background:transparent;color:#e4bc50;font-size:9px;cursor:pointer}.tm-forgot-password:hover{text-decoration:underline}.tm-auth-submit:disabled{transform:none;opacity:.65;cursor:wait}
.tm-sync-modal{display:grid;gap:10px}.tm-sync-modal h2{margin:0;font:600 26px var(--display);letter-spacing:-.04em}.tm-sync-modal .tm-auth-intro{margin:0 0 5px}.tm-conflict-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:4px 0 8px}.tm-conflict-meta span{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:10px;color:#929aa5;font-size:9px}.tm-conflict-meta strong{color:#f1f1ef;font-size:10px}.tm-sync-modal .tm-full{width:100%}
.tm-field[hidden]{display:none!important}
.tm-account-gate{display:grid;gap:14px;max-width:700px;margin-inline:auto;padding:clamp(24px,5vw,48px);text-align:left}.tm-account-gate h2{max-width:560px;margin:0;font:600 clamp(24px,4vw,36px)/1.14 var(--display);letter-spacing:-.04em}.tm-account-gate>p:not(.tm-eyebrow){max-width:560px;margin:0;color:#a9b0ba;font-size:13px;line-height:1.7}.tm-account-gate .tm-button{width:min(100%,300px)}.tm-account-gate .tm-button-secondary{margin-top:-5px}.tm-plan-card .tm-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.tm-billing-status{margin-bottom:17px}.tm-billing-status svg{flex:none}

/* Visual hierarchy and spacing refinement for TurnoMiner Web */
.tm-main{padding-top:clamp(30px,3.2vw,44px)}
.tm-page-head{margin-bottom:30px}
.tm-page-head h1{line-height:1.12}
.tm-page-lead{max-width:58ch;line-height:1.75}
.tm-grid,.tm-grid-home,.tm-calendar-layout,.tm-settings-layout{gap:20px}
.tm-grid-home>div:first-child,.tm-side-stack{gap:16px}
.tm-side-stack{align-content:start}
.tm-card{box-shadow:0 10px 26px rgba(0,0,0,.12)}
.tm-card-pad,.tm-form-card,.tm-calendar-card,.tm-control-card{padding:clamp(18px,2vw,24px)}
.tm-card-title{margin-bottom:20px}
.tm-stat-row{gap:12px}
.tm-stat-card{padding:16px}
.tm-week-card{margin-top:16px;padding:18px}
.tm-quick-grid{gap:12px;margin-top:16px}
.tm-quick-card{min-height:104px;padding:16px}
.tm-notice{display:flex;align-items:flex-start;gap:11px;padding:15px 16px;border:1px solid rgba(245,180,0,.17);border-radius:13px;background:linear-gradient(120deg,rgba(245,180,0,.07),rgba(255,255,255,.018));color:#c4c8ce;font-size:11px;line-height:1.65}
.tm-notice svg{width:17px;height:17px;flex:none;color:var(--gold)}
.tm-region-value{display:block;margin:2px 0 0;font:600 19px var(--display)}
.tm-plan-grid{gap:18px;align-items:stretch}
.tm-plan-card{min-height:250px;padding:26px}
.tm-plan-card>small{font-size:10px}
.tm-plan-card h3{margin-top:18px;font-size:clamp(29px,3vw,36px)}
.tm-plan-card p{max-width:38ch;margin-top:5px;margin-bottom:24px;font-size:12px;line-height:1.7}
.tm-plan-card .tm-button{min-height:44px;font-size:11px}
.tm-plan-note{padding:17px 19px;border-radius:13px;font-size:10px;line-height:1.75}
.tm-billing-status{margin-bottom:20px;padding:16px 18px}
.tm-account-gate{gap:17px;padding:clamp(26px,5vw,52px)}
.tm-account-gate>p:not(.tm-eyebrow){line-height:1.8}
.tm-list{gap:11px}
.tm-list-item{padding:15px}
.tm-setting-section{margin-top:25px;padding-top:23px}
.tm-modal-backdrop{padding:24px}

@media(max-width:900px){
  .tm-main{padding-top:27px}
  .tm-page-head{margin-bottom:22px}
  .tm-grid,.tm-grid-home,.tm-calendar-layout,.tm-settings-layout{gap:16px}
  .tm-grid-home>div:first-child,.tm-side-stack{gap:14px}
  .tm-card-pad,.tm-form-card,.tm-calendar-card,.tm-control-card{padding:18px}
  .tm-plan-card{min-height:220px;padding:22px}
}
@media(max-width:520px){
  .tm-main{padding-top:21px}
  .tm-page-head{margin-bottom:19px}
  .tm-grid,.tm-grid-home,.tm-calendar-layout,.tm-settings-layout{gap:13px}
  .tm-grid-home>div:first-child,.tm-side-stack{gap:12px}
  .tm-card-pad,.tm-form-card,.tm-control-card{padding:15px}
  .tm-stat-row{gap:7px}
  .tm-stat-card{padding:11px 9px}
  .tm-week-card{padding:14px 12px}
  .tm-quick-grid{gap:8px;margin-top:12px}
  .tm-quick-card{min-height:88px;padding:10px}
  .tm-plan-grid{gap:12px}
  .tm-plan-card{min-height:0;padding:20px}
  .tm-plan-card h3{margin-top:14px;font-size:29px}
  .tm-plan-card p{margin-bottom:19px;font-size:11px}
  .tm-plan-note{padding:13px 14px}
  .tm-billing-status{margin-bottom:14px;padding:13px 14px}
  .tm-account-gate{gap:13px;padding:21px}
  .tm-list{gap:8px}
  .tm-list-item{padding:11px}
}

/* Mobile browser presentation follows the app shell; desktop keeps the web dashboard. */
.tm-mobile-brand{display:none}
@media(max-width:900px){
  body{background:var(--bg)}
  .tm-topbar{height:64px;justify-content:flex-start;gap:12px;padding-inline:16px;padding-top:env(safe-area-inset-top);}
  .tm-mobile-brand{display:flex;align-items:center;gap:9px;color:var(--text);text-decoration:none}
  .tm-mobile-brand .tm-brand-mark{width:31px;height:29px}
  .tm-mobile-brand span{display:grid;gap:1px}
  .tm-mobile-brand strong{font:700 12px var(--display);letter-spacing:.12em}
  .tm-mobile-brand small{color:var(--muted);font-size:9px}
  .tm-breadcrumb{display:none}
  .tm-top-actions{margin-left:auto}
  .tm-online{display:none}
  .tm-signin{padding:8px 10px;font-size:9px}
  .tm-main{width:100%;padding:22px 16px calc(32px + env(safe-area-inset-bottom))}
  .tm-page-head{align-items:flex-start;margin-bottom:18px}
  .tm-page-head h1{font-size:clamp(25px,7vw,32px)}
  .tm-page-lead{font-size:12px;line-height:1.6}
  .tm-card{border-radius:17px;background:linear-gradient(145deg,rgba(38,49,62,.42),rgba(17,20,25,.98))}
  .tm-status-card{min-height:230px;padding:20px}
  .tm-stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tm-calendar-layout{grid-template-columns:1fr}
  .tm-calendar-card{padding:16px 12px}
  .tm-day{min-height:clamp(48px,10vw,72px)}
  .tm-mobile-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
}
@media(max-width:520px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .tm-topbar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 13px 0;gap:10px}
  .tm-mobile-menu{width:34px;height:34px;flex:none}
  .tm-mobile-brand{gap:7px}
  .tm-mobile-brand .tm-brand-mark{width:28px;height:26px}
  .tm-mobile-brand strong{font-size:11px}
  .tm-mobile-brand small{font-size:8px}
  .tm-signin{padding:7px 9px;font-size:8px}
  .tm-main{padding:18px 12px calc(26px + env(safe-area-inset-bottom))}
  .tm-page-head{display:block;margin-bottom:15px}
  .tm-page-head h1{font-size:27px}
  .tm-date-label{width:max-content;margin-top:11px}
  .tm-grid-home{grid-template-columns:minmax(0,1fr)}
  .tm-status-card{min-height:210px;padding:18px}
  .tm-state{font-size:clamp(34px,10vw,42px)}
  .tm-next-line{flex-direction:column;gap:5px}
  .tm-stat-row{gap:6px}
  .tm-stat-card{min-width:0;padding:10px 8px}
  .tm-stat-label{align-items:flex-start;font-size:8px;line-height:1.3}
  .tm-stat-value{font-size:16px}
  .tm-stat-detail{font-size:7px;line-height:1.35}
  .tm-week-card{padding:14px 10px}
  .tm-week-strip{gap:2px}
  .tm-week-day{gap:5px;padding:8px 1px}
  .tm-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-quick-card{min-width:0}
  .tm-calendar-card{padding:13px 9px}
  .tm-cal-toolbar{justify-content:space-between}
  .tm-cal-month{min-width:0;flex:1;justify-content:center}
  .tm-cal-month h2{min-width:0;font-size:13px}
  .tm-day{min-height:clamp(45px,12vw,58px);padding:4px 3px}
  .tm-day-number{font-size:11px}
  .tm-day-type{font-size:5.5px}
  .tm-holiday-tag{font-size:5px}
  .tm-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:5px}
  .tm-mobile-nav button{min-width:0;font-size:7px}
  .tm-mobile-nav svg{width:19px;height:19px}
  .tm-form-grid{gap:12px}
  .tm-inline-form{gap:10px}
}
@media(max-width:360px){
  .tm-mobile-brand small{display:none}
  .tm-mobile-brand strong{font-size:10px}
  .tm-topbar{gap:7px;padding-inline:9px}
  .tm-main{padding-inline:9px}
  .tm-stat-label{font-size:7px}
  .tm-stat-value{font-size:14px}
  .tm-cal-month h2{font-size:12px}
}

/* Fit the app tabs and account dialogs to narrow and short mobile viewports. */
@media(max-width:900px){
  .tm-mobile-nav{
    right:0;left:0;width:100%;min-height:64px;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;padding:6px 4px max(7px,env(safe-area-inset-bottom));
    box-sizing:border-box;
  }
  .tm-mobile-nav button{
    width:100%;min-width:0;min-height:48px;padding:4px 1px;
    gap:3px;overflow:hidden;font-size:clamp(7px,2vw,9px);line-height:1.1;
  }
  .tm-mobile-nav button span{
    display:block;max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap;
  }
  .tm-mobile-nav svg{width:20px;height:20px;flex:none}
  .tm-modal-backdrop{
    display:block;overflow-y:auto;overscroll-behavior:contain;
    padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));
  }
  .tm-auth-modal{
    width:min(100%,440px);max-height:calc(100vh - 24px);
    max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));
    margin:0 auto;overflow-y:auto;overscroll-behavior:contain;
    padding:24px clamp(17px,5vw,24px);scrollbar-width:thin;
  }
  .tm-auth-modal form{gap:11px}
  .tm-auth-tabs{margin:20px 0;}
  .tm-field input,.tm-field select{min-width:0;min-height:46px;font-size:16px}
}
@media(max-width:380px){
  .tm-mobile-nav{gap:0;padding-inline:2px}
  .tm-mobile-nav button{font-size:7px;letter-spacing:-.02em}
  .tm-auth-modal{padding:20px 16px}
  .tm-auth-modal h2{font-size:23px}
  .tm-auth-note,.tm-back-home{font-size:9px}
}
@media(max-height:620px) and (max-width:900px){
  .tm-modal-backdrop{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .tm-auth-modal{max-height:calc(100vh - 16px);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)))}
  .tm-auth-brand{margin-bottom:12px}
  .tm-auth-tabs{margin:13px 0}
  .tm-auth-intro{margin-bottom:13px}
}

/* Dedicated mobile home composition matching the current TurnoMiner app. */
.tm-mobile-home{display:none}
@media(max-width:900px){
  .tm-desktop-home{display:none}
  .tm-mobile-home{display:grid;gap:14px}
  .tm-top-actions{display:none}
  .tm-mobile-home .tm-card{border:1px solid #2b3038;border-radius:25px;background:#151a20;box-shadow:none}
  .tm-mobile-status{display:flex;min-height:196px;align-items:center;justify-content:space-between;gap:10px;padding:22px 25px}
  .tm-mobile-status-copy{min-width:0}
  .tm-mobile-status .tm-eyebrow,.tm-mobile-next .tm-eyebrow,.tm-mobile-holiday .tm-eyebrow{margin:0 0 16px;color:#c8a75b;font-size:clamp(10px,2.2vw,14px);letter-spacing:.18em}
  .tm-mobile-status h1{max-width:14ch;margin:0 0 21px;font:600 clamp(24px,5vw,38px)/1.12 var(--display);letter-spacing:-.035em}
  .tm-mobile-shift{display:inline-flex;min-height:38px;align-items:center;padding:0 16px;border:1px solid #303640;border-radius:99px;color:#aab1bc;font-size:clamp(9px,2vw,13px);font-weight:700;letter-spacing:.1em}
  .tm-mobile-day-count{display:flex;width:clamp(106px,21vw,160px);height:clamp(106px,21vw,160px);flex:none;align-items:center;justify-content:center;flex-direction:column;border:1.5px solid #a77e17;border-radius:50%;background:#111419;color:var(--gold);box-shadow:inset 0 0 22px rgba(245,180,0,.035)}
  .tm-mobile-day-count strong{font:600 clamp(38px,7vw,54px)/1 var(--display)}
  .tm-mobile-day-count span{margin-top:8px;color:#9ca3ad;font-size:clamp(10px,2vw,14px);letter-spacing:.08em}
  .tm-mobile-next{min-height:154px;padding:25px}
  .tm-mobile-next .tm-eyebrow{margin-bottom:18px}
  .tm-mobile-next h2,.tm-mobile-events h2,.tm-mobile-holiday h2{margin:0;font:600 clamp(22px,4.5vw,31px)/1.2 var(--display);letter-spacing:-.025em}
  .tm-mobile-next h2{color:#d5b361}
  .tm-mobile-next>p:last-child{margin:14px 0 0;color:#aab0ba;font-size:clamp(15px,3vw,20px)}
  .tm-mobile-events{padding:25px}
  .tm-mobile-events h2{margin-bottom:26px}
  .tm-mobile-events>div{display:grid}
  .tm-mobile-event{display:flex;min-width:0;min-height:83px;align-items:center;gap:16px;padding:13px 0;border:0;border-top:1px solid #30353c;background:transparent;text-align:left;cursor:pointer}
  .tm-mobile-event:first-child{border-top:0;padding-top:0}
  .tm-mobile-event-icon{display:grid;width:40px;height:44px;flex:none;place-items:center;color:#d8dce2}
  .tm-mobile-event-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tm-mobile-event-icon.is-holiday{color:#ed5155}
  .tm-mobile-event-copy{display:grid;min-width:0;flex:1;gap:7px}
  .tm-mobile-event-copy strong{overflow:hidden;font:600 clamp(16px,3.5vw,22px) var(--display);text-overflow:ellipsis;white-space:nowrap}
  .tm-mobile-event-copy small{color:#9da4ae;font-size:clamp(13px,2.8vw,18px)}
  .tm-mobile-event>svg{width:22px;height:22px;flex:none;fill:none;stroke:#e7e9ed;stroke-width:2}
  .tm-mobile-vacation{display:flex;width:100%;min-height:140px;align-items:center;gap:20px;padding:22px 25px;text-align:left;cursor:pointer}
  .tm-mobile-vacation-icon{display:grid;width:54px;height:54px;flex:none;place-items:center;color:#d951a4}
  .tm-mobile-vacation-icon svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tm-mobile-vacation>span:nth-child(2){display:grid;min-width:0;flex:1;gap:8px}
  .tm-mobile-vacation small{color:#c657a3;font-size:clamp(10px,2vw,13px);font-weight:750;letter-spacing:.17em}
  .tm-mobile-vacation strong{font:600 clamp(16px,3.5vw,23px)/1.25 var(--display)}
  .tm-mobile-vacation em{color:#a2a8b1;font-size:clamp(12px,2.7vw,17px);font-style:normal;line-height:1.4}
  .tm-mobile-vacation>svg{width:21px;height:21px;flex:none;fill:none;stroke:#d951a4;stroke-width:2}
  .tm-mobile-holiday{display:grid;gap:14px;padding:25px}
  .tm-mobile-holiday .tm-eyebrow{margin-bottom:4px}
  .tm-mobile-region{margin:0;color:#a2a9b3;font-size:clamp(13px,2.7vw,18px)}
  .tm-mobile-holiday>strong{margin-top:16px;color:#d5b361;font:600 clamp(20px,4vw,28px)/1.3 var(--display)}
  .tm-mobile-holiday>small{color:#9da4ae;font-size:14px}
}
@media(max-width:520px){
  .tm-mobile-home{gap:12px}
  .tm-mobile-home .tm-card{border-radius:23px}
  .tm-mobile-status{min-height:174px;padding:20px 18px}
  .tm-mobile-status .tm-eyebrow{margin-bottom:13px}
  .tm-mobile-status h1{margin-bottom:17px}
  .tm-mobile-shift{min-height:34px;padding-inline:13px}
  .tm-mobile-next{min-height:139px;padding:21px}
  .tm-mobile-next .tm-eyebrow{margin-bottom:15px}
  .tm-mobile-events{padding:21px}
  .tm-mobile-events h2{margin-bottom:19px}
  .tm-mobile-event{min-height:76px;gap:11px}
  .tm-mobile-event-icon{width:34px}
  .tm-mobile-event-copy strong{font-size:17px}
  .tm-mobile-event-copy small{font-size:13px}
  .tm-mobile-vacation{min-height:128px;gap:12px;padding:18px}
  .tm-mobile-vacation-icon{width:42px;height:46px}
  .tm-mobile-vacation-icon svg{width:40px;height:40px}
  .tm-mobile-vacation strong{font-size:16px}
  .tm-mobile-vacation em{font-size:12px}
  .tm-mobile-holiday{gap:12px;padding:21px}
  .tm-mobile-holiday>strong{font-size:20px}
}
@media(max-width:360px){
  .tm-mobile-status{padding:17px 14px}
  .tm-mobile-status h1{font-size:23px}
  .tm-mobile-day-count{width:94px;height:94px}
  .tm-mobile-day-count strong{font-size:34px}
  .tm-mobile-shift{padding-inline:10px;font-size:8px}
  .tm-mobile-events,.tm-mobile-next,.tm-mobile-holiday{padding:18px}
  .tm-mobile-vacation{padding:16px 13px}
}

/* Intermediate browser widths keep the desktop dashboard from squeezing columns. */
.tm-demo-upcoming{margin:18px -21px -21px;padding:16px 18px 8px;border-top:1px solid #30353c}
.tm-demo-upcoming h2{margin:0 0 8px;color:#f0f1f3;font:600 clamp(18px,4vw,23px)/1.25 var(--display);letter-spacing:-.02em}
.tm-demo-upcoming-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;min-height:60px;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #30353c}
.tm-demo-upcoming-icon{display:grid;width:25px;height:25px;place-items:center;color:#e3b64e}
.tm-demo-upcoming-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-demo-upcoming-icon.is-event{color:#f0bc56}.tm-demo-upcoming-icon.is-doc{color:#9ba7b9}.tm-demo-upcoming-icon.is-vacation{color:#d951a4}.tm-demo-upcoming-icon.is-holiday{color:#ed5155}.tm-demo-upcoming-icon.is-bag{color:#c6a456}
.tm-demo-upcoming-row>strong{min-width:0;overflow:hidden;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.tm-demo-upcoming-row>small{color:#a0a6b0;font-size:10px;text-align:right;white-space:nowrap}
.tm-demo-upcoming-empty{margin:0;padding:12px 0 3px;border-top:1px solid #30353c;color:#a0a6b0;font-size:12px}
@media(max-width:900px){.tm-mobile-next{min-height:0;padding:18px 19px 14px}.tm-mobile-next .tm-eyebrow{margin-bottom:10px}.tm-mobile-next h2{font-size:clamp(20px,5vw,26px)}.tm-mobile-next>p{margin:8px 0 16px;font-size:14px}.tm-demo-upcoming{margin:0 -19px -14px;padding:14px 15px 6px}.tm-demo-upcoming h2{margin-bottom:6px;font-size:18px}.tm-demo-upcoming-row{grid-template-columns:25px minmax(0,1fr) auto;min-height:57px;gap:7px}.tm-demo-upcoming-icon{width:23px}.tm-demo-upcoming-row>strong{font-size:12px}.tm-demo-upcoming-row>small{font-size:9px}}
@media(max-width:380px){.tm-demo-upcoming-row{grid-template-columns:23px minmax(0,1fr);gap:6px}.tm-demo-upcoming-row>small{grid-column:2;text-align:left;white-space:normal}.tm-demo-upcoming-row{padding:8px 0}}
@media(max-width:900px){body[data-demo="true"] .tm-mobile-home{gap:8px}body[data-demo="true"] .tm-mobile-next{padding:14px 14px 12px}body[data-demo="true"] .tm-mobile-next .tm-eyebrow{margin-bottom:7px;font-size:9px;letter-spacing:.14em}body[data-demo="true"] .tm-mobile-next>h2{font-size:19px}body[data-demo="true"] .tm-mobile-next>p{margin:6px 0 11px;font-size:12px}.tm-demo-upcoming{margin:0 -14px -12px;padding:11px 12px 4px}.tm-demo-upcoming h2{margin-bottom:5px;font-size:15px}.tm-demo-upcoming-row{grid-template-columns:22px minmax(0,1fr) auto;min-height:45px;gap:5px;padding:7px 0}.tm-demo-upcoming-icon{width:20px;height:20px}.tm-demo-upcoming-icon svg{width:17px;height:17px}.tm-demo-upcoming-row>strong{font-size:11px}.tm-demo-upcoming-row>small{font-size:8px}}
@media(max-width:380px){.tm-demo-upcoming-row{grid-template-columns:21px minmax(0,1fr);gap:5px}.tm-demo-upcoming-row>small{grid-column:2;font-size:9px}}
@media(min-width:901px) and (max-width:1100px){
  .tm-grid-home,.tm-calendar-layout,.tm-settings-layout{grid-template-columns:minmax(0,1fr)}
  .tm-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-main{padding-inline:clamp(22px,4vw,40px)}
}

/* Small-height touch devices in landscape use the compact app navigation too. */
@media(max-height:520px) and (pointer:coarse){
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
  .tm-sidebar{width:min(300px,84vw);transform:translateX(-102%);transition:transform .25s ease;box-shadow:22px 0 50px #0008}
  .tm-sidebar.is-open{transform:translateX(0)}
  .tm-main-column{margin-left:0}
  .tm-topbar{height:54px;justify-content:flex-start;gap:10px;padding:env(safe-area-inset-top) 12px 0}
  .tm-mobile-menu{display:grid;width:34px;height:34px;flex:none;align-content:center;justify-items:center;gap:4px;border:1px solid var(--line);border-radius:9px;background:#15181e}
  .tm-mobile-menu span{width:15px;height:1.5px;background:#d9dde2}
  .tm-mobile-brand{display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}
  .tm-mobile-brand .tm-brand-mark{width:28px;height:26px}
  .tm-mobile-brand span{display:grid;gap:1px}
  .tm-mobile-brand strong{font:700 11px var(--display);letter-spacing:.12em}
  .tm-mobile-brand small{color:var(--muted);font-size:8px}
  .tm-breadcrumb,.tm-top-actions{display:none}
  .tm-main{width:100%;padding:12px 14px calc(18px + env(safe-area-inset-bottom))}
  .tm-mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:25;display:grid;width:100%;min-height:54px;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:4px 5px max(5px,env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.09);background:rgba(13,15,19,.97);backdrop-filter:blur(16px)}
  .tm-mobile-nav button{display:grid;width:100%;min-width:0;min-height:44px;align-content:center;justify-items:center;gap:2px;padding:2px 1px;overflow:hidden;border:0;border-radius:8px;background:transparent;color:#858d98;font-size:clamp(7px,1.5vw,9px);line-height:1.05}
  .tm-mobile-nav button.is-active{background:rgba(245,180,0,.1);color:#f2c348}
  .tm-mobile-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tm-desktop-home{display:none}
  .tm-mobile-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px}
  .tm-mobile-status,.tm-mobile-next,.tm-mobile-events,.tm-mobile-vacation,.tm-mobile-holiday{min-width:0;min-height:0;padding:14px 16px}
  .tm-mobile-status{grid-column:1/-1;min-height:118px}
  .tm-mobile-day-count{width:88px;height:88px}
  .tm-mobile-day-count strong{font-size:32px}
  .tm-mobile-status .tm-eyebrow{margin-bottom:7px}
  .tm-mobile-status h1{margin-bottom:9px;font-size:clamp(20px,4vw,29px)}
  .tm-mobile-shift{min-height:27px;padding-inline:10px;font-size:8px}
  .tm-mobile-next .tm-eyebrow,.tm-mobile-holiday .tm-eyebrow{margin-bottom:8px}
  .tm-mobile-next h2,.tm-mobile-events h2,.tm-mobile-holiday h2{font-size:clamp(17px,3vw,23px)}
  .tm-mobile-next>p:last-child{margin-top:8px;font-size:13px}
  .tm-mobile-events{grid-row:span 2}
  .tm-mobile-events h2{margin-bottom:9px}
  .tm-mobile-event{min-height:54px;gap:7px;padding:7px 0}
  .tm-mobile-event-icon{width:27px;height:32px}
  .tm-mobile-event-icon svg{width:20px;height:20px}
  .tm-mobile-event-copy{gap:3px}
  .tm-mobile-event-copy strong{font-size:12px}
  .tm-mobile-event-copy small{font-size:10px}
  .tm-mobile-event>svg{width:16px;height:16px}
  .tm-mobile-vacation{gap:8px}
  .tm-mobile-vacation-icon{width:32px;height:34px}
  .tm-mobile-vacation-icon svg{width:31px;height:31px}
  .tm-mobile-vacation>span:nth-child(2){gap:4px}
  .tm-mobile-vacation small{font-size:8px}
  .tm-mobile-vacation strong{font-size:13px}
  .tm-mobile-vacation em{font-size:10px}
  .tm-mobile-vacation>svg{width:16px;height:16px}
  .tm-mobile-holiday{gap:7px}
  .tm-mobile-holiday>strong{margin-top:3px;font-size:15px}
  .tm-mobile-holiday>small,.tm-mobile-region{font-size:10px}
}

/* Calendar screen modeled on the current TurnoMiner app. */
.tm-calendar-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.tm-calendar-page-head .tm-eyebrow{margin:0 0 8px;color:#c6a456;font-size:clamp(10px,1.3vw,14px);letter-spacing:.18em}
.tm-calendar-page-head h1{margin:0;font:600 clamp(28px,3vw,40px)/1.05 var(--display);letter-spacing:-.035em}
.tm-calendar-actions{display:flex;align-items:center;gap:10px}
.tm-calendar-actions .tm-button{min-height:54px;padding:0 22px;border-radius:17px;font-size:14px}
.tm-calendar-gear{display:grid;flex:none;width:58px;height:58px;place-items:center;padding:0;appearance:none;border:1px solid #303640;border-radius:17px;background:#11161c;color:#e8ebef;line-height:0;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.tm-calendar-gear:hover{border-color:rgba(198,164,86,.65);background:#191a1d}.tm-calendar-gear:active{transform:scale(.96)}
.tm-calendar-gear svg{display:block;width:25px;height:25px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-calendar-screen{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;align-items:start}
.tm-calendar-screen>.tm-legend{grid-column:1/-1;margin:0;color:#9ca3ad;font-size:clamp(10px,1.2vw,14px);gap:15px}
.tm-calendar-screen>.tm-legend i{width:10px;height:10px}
.tm-calendar-screen>.tm-cal-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
.tm-calendar-screen .tm-cal-today{min-width:68px;min-height:56px;padding:0 12px;border-radius:17px;background:#11161c;font-size:14px}
.tm-calendar-screen .tm-cal-month{flex:1;justify-content:center;gap:clamp(10px,5vw,42px)}
.tm-calendar-screen .tm-cal-month h2{min-width:0;font-size:clamp(20px,3vw,32px);letter-spacing:.04em}
.tm-calendar-screen .tm-icon-button{width:42px;height:42px;border:0;background:transparent}
.tm-calendar-screen .tm-icon-button svg{width:24px;height:24px;stroke-width:2.2}
.tm-calendar-screen .tm-month-menu{color:#c6a456}
.tm-calendar-card{grid-column:1/-1;min-width:0;padding:0;border:0;background:transparent;box-shadow:none}
.tm-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));border-radius:24px;background:#101318}
.tm-calendar-grid.has-week-numbers{grid-template-columns:clamp(38px,6.5vw,54px) repeat(7,minmax(0,1fr))}
.tm-week-label{min-height:clamp(42px,7vw,64px);font-size:clamp(11px,1.5vw,16px);background:#12161c}
.tm-week-number{display:grid;min-height:clamp(90px,18vw,144px);place-items:center;border-right:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);background:#111419;color:#a3aab4;font-size:clamp(11px,1.5vw,16px)}
.tm-day{min-width:0;min-height:clamp(90px,18vw,144px);padding:clamp(7px,1.4vw,13px);border-color:rgba(255,255,255,.065);font-size:clamp(13px,1.7vw,20px)}
.tm-day-number{font-size:clamp(15px,2.1vw,25px)}
.tm-day-type{font-size:clamp(8px,1.35vw,14px)}
.tm-holiday-tag{padding:3px 2px;font-size:clamp(7px,1.1vw,12px)}
.tm-day.has-holiday .tm-day-number{margin-top:clamp(13px,2vw,22px)}
.tm-calendar-reading{margin-top:14px;padding:16px 18px;border:1px solid var(--line);border-radius:17px}
.tm-calendar-reading h3{margin:0 0 12px;color:#c6a456;font:700 12px var(--display);letter-spacing:.16em;text-transform:uppercase}
.tm-calendar-reading>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tm-calendar-reading>div>span{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:10px;align-items:center}
.tm-calendar-reading b{grid-row:span 2;display:grid;width:40px;height:40px;place-items:center;border:1px solid #65532c;border-radius:11px;color:#d6b65f}
.tm-calendar-reading strong{font-size:13px}
.tm-calendar-reading small{color:var(--muted);font-size:11px;line-height:1.4}
.tm-calendar-card>.tm-disclaimer{display:none}
.tm-day{position:relative}
.tm-day .tm-day-type.is-day-type{position:absolute;top:clamp(8px,1.4vw,13px);right:clamp(6px,1.2vw,11px);bottom:auto;align-self:auto;text-align:right}
.tm-day.has-holiday .tm-day-type.is-day-type{top:clamp(20px,3vw,29px)}
.tm-day .tm-day-type.is-other-shift-type{position:absolute;right:clamp(5px,1vw,10px);bottom:clamp(6px,1.2vw,11px);align-self:auto;text-align:right}
.tm-day.is-morning{background:rgba(119,91,191,.3);color:#ddd2ff}
.tm-day.is-afternoon{background:rgba(83,102,177,.28);color:#d5dcff}
.tm-day.is-night{background:rgba(113,91,191,.27);color:#d0bfff}
.tm-day.is-morning .tm-day-type,.tm-year-day.is-morning{color:#c6adff}
.tm-day.is-afternoon .tm-day-type,.tm-year-day.is-afternoon{color:#b9c6ff}
.tm-day.is-night .tm-day-type,.tm-year-day.is-night{color:#b9a5ff}
.tm-calendar-screen>.tm-legend .legend-morning{background:#a990ff}
.tm-calendar-screen>.tm-legend .legend-afternoon{background:#7189e5}
.tm-calendar-side{grid-column:2;grid-row:4;gap:10px}
.tm-calendar-settings{display:none;grid-column:1/-1;gap:12px;padding:16px;border:1px solid #383329;border-radius:15px;background:#17191d}
.tm-calendar-settings.is-open{display:grid}
.tm-calendar-settings h3{margin:0 0 2px;font:600 15px var(--display)}
.tm-calendar-settings label{display:flex;align-items:center;gap:10px;color:#c5cad1;font-size:13px}
.tm-calendar-settings input{width:18px;height:18px;accent-color:var(--gold)}
.tm-month-picker{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tm-year-view{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tm-year-month{min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#111419}
.tm-year-month h3{margin:0 0 8px;color:#d8dce2;font:600 14px var(--display);text-transform:capitalize}
.tm-year-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.tm-year-grid.has-weeks{grid-template-columns:18px repeat(7,minmax(0,1fr))}
.tm-year-label{color:#858d98;font-size:8px}
.tm-year-day,.tm-year-week{display:grid;min-height:22px;place-items:center;border-radius:4px;color:#d8dce2;font-size:9px}
.tm-year-week{color:#a0a6b0}
.tm-year-day.is-empty{color:transparent}
.tm-year-day.is-work{background:rgba(245,180,0,.2);color:#f4c33c}
.tm-year-day.is-today{position:relative;z-index:1;outline:2px solid #fff;outline-offset:1px;font-weight:800}
.tm-year-day.is-night{background:rgba(111,94,187,.3);color:#b8a5ff}
.tm-year-day.is-vacation{background:rgba(217,81,164,.24);color:#f07fbe}
.tm-year-day.has-holiday{box-shadow:inset 0 3px #c92d36}
.tm-sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tm-sidebar-footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.tm-sidebar-footer-actions .tm-nav-link{min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:6px 4px;text-align:center}
.tm-sidebar-footer-actions .tm-nav-link span{font-size:10px}
.tm-sidebar-footer-actions .tm-nav-link>svg{width:18px;height:18px}
.tm-sidebar-version{display:block;padding:0 4px;color:#828a94;text-align:center;font-size:10px}
.tm-theme-row{margin:15px 10px 3px}
.tm-side-caption{margin-top:24px}
.tm-nav-tools{gap:5px}
.tm-nav-tools .tm-nav-link,.tm-rate-link{min-height:44px;border:1px solid #272c34;border-radius:12px;background:#14171c}
.tm-nav-tools .tm-nav-link>svg,.tm-rate-link>svg{color:#c9a652}
.tm-policy-link{text-decoration:none}
.tm-rate-link{width:100%;text-align:left}
.tm-sidebar-bottom{gap:8px}
.tm-feature-backdrop{position:fixed;inset:0;z-index:110;display:grid;overflow-y:auto;place-items:center;padding:20px;background:rgba(2,3,5,.78);backdrop-filter:blur(8px)}
.tm-feature-dialog{position:relative;width:min(100%,620px);max-height:min(86dvh,780px);overflow:auto;padding:28px;border:1px solid #373c44;border-radius:20px;background:radial-gradient(ellipse at 82% 0,rgba(245,180,0,.08),transparent 36%),#111419;box-shadow:0 28px 90px #000a}
.tm-feature-close{position:absolute;top:15px;right:15px;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#191d23;color:#c8cdd4;font-size:22px;cursor:pointer}
.tm-feature-dialog h2{max-width:calc(100% - 40px);margin:0 0 15px;font:600 clamp(22px,4vw,30px)/1.15 var(--display);letter-spacing:-.035em}
.tm-feature-intro{margin:0 0 17px;color:#aab1bb;font-size:13px;line-height:1.6}
.tm-faq-list{display:grid;gap:8px}
.tm-faq-list details{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#15191f}
.tm-faq-list summary{color:#eceef0;font-size:13px;font-weight:600;cursor:pointer}
.tm-faq-list details p{margin:10px 0 0;color:#a9b0ba;font-size:12px;line-height:1.55}
.tm-access-option{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-top:1px solid rgba(255,255,255,.08);cursor:pointer}
.tm-access-option>span{display:grid;gap:4px}
.tm-access-option strong{color:#eceef0;font-size:13px}
.tm-access-option small{color:#9ca4ae;font-size:11px;line-height:1.45}
.tm-access-option input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:var(--gold)}
.tm-font-control input[type=range]{width:min(48%,210px);accent-color:var(--gold)}
.tm-report-form{display:grid;gap:13px}
.tm-report-form textarea{width:100%;min-height:110px;padding:12px;border:1px solid #303640;border-radius:9px;outline:none;resize:vertical;background:#101318;color:#f0f1f3;font:inherit;font-size:13px}
.tm-report-form textarea:focus{border-color:#a78219;box-shadow:0 0 0 3px rgba(245,180,0,.09)}
.tm-settings-cycle-quick{margin:0 0 12px}.tm-cycle-custom{width:auto;margin:0}.tm-custom-cycle-fields{margin:0 0 12px}.tm-cycle-status-label{margin:8px 0 0}.tm-cycle-status{margin:6px 0 12px}.tm-cycle-day-label{margin-top:8px}
.tm-settings-mode{margin:0 0 14px}.tm-cycle-mode-label{margin:5px 0 0}
.tm-high-contrast{--line:#737d8b;--line-light:#aab3c0;--muted:#d0d5dc;--subtle:#b5bdc7;--surface:#0e1116;--surface-2:#191e25;color:#fff}
.tm-high-contrast .tm-card,.tm-high-contrast .tm-nav-tools .tm-nav-link{border-color:#717b89}

.tm-reading-mode .tm-main .tm-card{background:#111419;box-shadow:none}
.tm-reading-mode .tm-main .tm-page-lead,.tm-reading-mode .tm-main .tm-disclaimer{color:#c7cbd1}
.tm-main{zoom:var(--tm-font-scale,1)}
.tm-theme-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:24px 10px 4px;color:#a9afb8}
.tm-theme-row>span{display:grid;place-items:center}
.tm-theme-row svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tm-theme-switch{display:flex;width:58px;height:32px;align-items:center;padding:3px;border:1px solid rgba(245,180,0,.4);border-radius:99px;background:#bd9a49;cursor:pointer}
.tm-theme-switch i{width:24px;height:24px;transform:translateX(25px);border-radius:50%;background:#fff;box-shadow:0 1px 4px #0005;transition:transform .2s}
.tm-light-mode .tm-theme-switch{background:#303741}
.tm-light-mode .tm-theme-switch i{transform:translateX(0)}
.tm-drawer-open:before{position:fixed;inset:0;z-index:29;background:rgba(0,0,0,.62);content:""}
.tm-light-mode{--bg:#f3f4f6;--surface:#fff;--surface-2:#eceff3;--surface-3:#e4e8ed;--line:#cbd1d9;--line-light:#aeb7c2;--text:#171a1e;--muted:#535d69;--subtle:#697482;color-scheme:light;background:#f3f4f6;color:#171a1e}
.tm-light-mode .tm-sidebar,.tm-light-mode .tm-topbar{background:rgba(248,249,251,.97)}
.tm-light-mode .tm-main{color:#171a1e}
.tm-light-mode .tm-card,.tm-light-mode .tm-stat-card,.tm-light-mode .tm-week-card,.tm-light-mode .tm-quick-card,.tm-light-mode .tm-list-item,.tm-light-mode .tm-calendar-settings,.tm-light-mode .tm-year-month,.tm-light-mode .tm-feature-dialog{background:#fff;color:#171a1e}
.tm-light-mode .tm-mobile-nav{background:rgba(248,249,251,.97)}
.tm-light-mode .tm-nav-link,.tm-light-mode .tm-breadcrumb strong,.tm-light-mode .tm-card-title h2,.tm-light-mode .tm-card-title h3,.tm-light-mode .tm-faq-list summary,.tm-light-mode .tm-access-option strong{color:#252a31}
.tm-light-mode .tm-day,.tm-light-mode .tm-year-day{background:#f4f5f7;color:#20252b}
.tm-light-mode .tm-day.is-empty{background:#e9ecf0}
.tm-light-mode .tm-week-label{background:#eef0f3;color:#66707b}
.tm-light-mode .tm-calendar-reading,.tm-light-mode .tm-faq-list details,.tm-light-mode .tm-access-option{border-color:#d1d6dd}
.tm-light-mode .tm-feature-dialog .tm-feature-intro,.tm-light-mode .tm-faq-list details p,.tm-light-mode .tm-access-option small{color:#58616c}
.tm-light-mode .tm-auth-modal,.tm-light-mode .tm-feature-dialog{background:#fff}
.tm-light-mode.tm-high-contrast{--line:#737b85;--muted:#3e4650;color:#111}
@media(max-width:900px){.tm-sidebar{padding:17px 13px 12px}.tm-sidebar .tm-brand{padding-inline:7px}#tm-sidebar>.tm-side-caption:not(.tm-side-caption-bottom),#tm-sidebar>nav.tm-nav:first-of-type{display:none}.tm-side-caption{margin:18px 8px 8px}.tm-nav-tools{gap:8px}.tm-nav-tools .tm-nav-link{min-height:58px;padding-inline:13px;border-radius:14px}.tm-nav-tools .tm-nav-link span{font-size:12px}.tm-sidebar-bottom{margin-top:auto}.tm-feature-backdrop{place-items:start center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.tm-feature-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:23px 18px}}
@media(max-width:900px){
  .tm-calendar-page-head{margin-bottom:14px}
  .tm-calendar-actions{gap:7px}
  .tm-calendar-actions .tm-button{min-height:48px;padding-inline:15px;border-radius:15px;font-size:12px}
  .tm-calendar-gear{width:50px;height:50px;border-radius:15px}
  .tm-calendar-screen{grid-template-columns:minmax(0,1fr)}
  .tm-calendar-screen>.tm-legend{grid-column:1}
  .tm-calendar-screen>.tm-cal-toolbar{grid-column:1}
  .tm-calendar-card{grid-column:1/-1}
  .tm-calendar-side{grid-column:1;grid-row:auto}
  .tm-year-view{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-week-label{min-height:clamp(34px,7vw,50px)}
  .tm-week-number,.tm-day{min-height:clamp(74px,15vw,116px)}
}
@media(max-width:520px){
  .tm-calendar-page-head .tm-eyebrow{font-size:10px;margin-bottom:7px}
  .tm-calendar-page-head h1{font-size:28px}
  .tm-calendar-actions .tm-button{min-height:44px;padding-inline:12px;font-size:11px}
  .tm-calendar-gear{width:46px;height:46px}
  .tm-calendar-screen{gap:10px}
  .tm-calendar-screen>.tm-legend{gap:9px;font-size:9px}
  .tm-calendar-screen>.tm-legend i{width:8px;height:8px}
  .tm-calendar-screen .tm-cal-today{min-width:56px;min-height:46px;padding-inline:8px;border-radius:14px;font-size:12px}
  .tm-calendar-screen .tm-cal-month{gap:4px}
  .tm-calendar-screen .tm-cal-month h2{font-size:clamp(17px,5vw,23px);white-space:nowrap}
  .tm-calendar-screen .tm-icon-button{width:34px;height:38px;padding:0}
  .tm-calendar-screen .tm-icon-button svg{width:20px;height:20px}
  .tm-calendar-grid{border-radius:20px}
  .tm-calendar-grid.has-week-numbers{grid-template-columns:34px repeat(7,minmax(0,1fr))}
  .tm-week-label{min-height:34px;font-size:10px}
  .tm-week-number,.tm-day{min-height:clamp(62px,17vw,88px)}
  .tm-week-number{font-size:10px}
  .tm-day{padding:5px 4px}
  .tm-day-number{font-size:clamp(14px,4vw,19px)}
  .tm-day-type{font-size:clamp(7px,2vw,10px)}
  .tm-holiday-tag{font-size:clamp(6px,1.7vw,8px)}
  .tm-calendar-reading{margin-top:10px;padding:12px}
  .tm-calendar-reading h3{font-size:10px}
  .tm-calendar-reading>div{gap:8px}
  .tm-calendar-reading>div>span{grid-template-columns:32px minmax(0,1fr);gap:7px}
  .tm-calendar-reading b{width:32px;height:32px}
  .tm-calendar-reading strong{font-size:11px}
  .tm-calendar-reading small{font-size:9px}
  .tm-year-view{grid-template-columns:1fr;gap:8px}
  .tm-year-month{padding:10px}
  .tm-day .tm-day-type.is-day-type{top:5px;right:4px}
  .tm-day.has-holiday .tm-day-type.is-day-type{top:16px}
  .tm-day .tm-day-type.is-other-shift-type{right:3px;bottom:4px}
}
@media(max-width:360px){
  .tm-calendar-page-head{gap:6px}
  .tm-calendar-actions .tm-button{gap:5px;padding-inline:8px;font-size:10px}
  .tm-calendar-gear{width:42px;height:44px}
  .tm-calendar-screen>.tm-legend{gap:7px;font-size:8px}
  .tm-calendar-screen .tm-cal-month{gap:0}
  .tm-calendar-screen .tm-cal-month h2{font-size:16px}
  .tm-calendar-grid.has-week-numbers{grid-template-columns:29px repeat(7,minmax(0,1fr))}
  .tm-week-number,.tm-day{min-height:58px}
  .tm-day-type{font-size:6px}
  .tm-calendar-reading>div{grid-template-columns:1fr}
  .tm-day .tm-day-type.is-day-type{top:4px;right:3px}
  .tm-day .tm-day-type.is-other-shift-type{right:2px;bottom:3px;font-size:5px}
}
@media(max-height:380px) and (pointer:coarse){
  .tm-mobile-home{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tm-mobile-status{grid-column:1/-1}
  .tm-mobile-events{grid-row:span 1}
}

/* Compact, content-led cards across every mobile section. */
@media(max-width:900px){
  .tm-main{padding-top:16px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .tm-page-head{gap:10px;margin-bottom:14px}
  .tm-page-head h1{line-height:1.08}
  .tm-page-lead{margin-top:7px;line-height:1.5}
  .tm-grid,.tm-grid-home,.tm-calendar-layout,.tm-settings-layout,.tm-side-stack{gap:11px}
  .tm-grid-home>div:first-child,.tm-side-stack{gap:10px}
  .tm-card-pad,.tm-form-card,.tm-calendar-card,.tm-control-card{padding:14px}
  .tm-card-title{gap:8px;margin-bottom:12px}
  .tm-card-title p{margin-top:3px;line-height:1.4}
  .tm-status-card{min-height:0;padding:17px}
  .tm-state{margin-top:12px;font-size:clamp(32px,8vw,44px)}
  .tm-next-line{margin-top:14px;padding-top:11px}
  .tm-stat-row{gap:7px;margin-top:10px}
  .tm-stat-card{padding:11px 10px}
  .tm-stat-value{margin-top:5px}
  .tm-week-card{margin-top:10px;padding:13px 11px}
  .tm-week-heading{margin-bottom:9px}
  .tm-week-strip{gap:3px}
  .tm-week-day{gap:4px;padding:7px 2px}
  .tm-quick-grid{gap:8px;margin-top:10px}
  .tm-quick-card{min-height:0;gap:10px;padding:12px}
  .tm-notice{gap:8px;padding:11px 12px;line-height:1.5}
  .tm-calendar-card{padding:12px 10px}
  .tm-cal-toolbar{gap:7px;margin-bottom:11px}
  .tm-cal-month{gap:6px}
  .tm-cal-month h2{min-width:0;font-size:14px}
  .tm-legend{gap:8px;margin-bottom:10px}
  .tm-week-label{min-height:29px}
  .tm-day{min-height:clamp(42px,10vw,58px);padding:5px 4px}
  .tm-side-stack{align-content:start}
  .tm-control-card{padding:14px}
  .tm-control-card>p{margin:5px 0 11px;line-height:1.45}
  .tm-toggle-row{margin-top:10px}
  .tm-control-meta{gap:7px;margin-top:10px;padding-top:10px}
  .tm-form-grid{gap:10px}
  .tm-field{gap:5px}
  .tm-field input,.tm-field select{min-height:44px}
  .tm-button{min-height:42px}
  .tm-inline-form{gap:7px;margin-bottom:11px}
  .tm-list{gap:7px}
  .tm-list-item{gap:9px;padding:10px}
  .tm-bag-progress{gap:8px;margin-bottom:11px;padding:10px 11px}
  .tm-disclaimer{margin-top:10px}
  .tm-vacation-banner{gap:10px;margin-bottom:11px;padding:13px 14px}
  .tm-plan-grid{gap:10px}
  .tm-plan-card{min-height:0;padding:16px}
  .tm-plan-card h3{margin:12px 0 4px;font-size:clamp(24px,7vw,30px)}
  .tm-plan-card p{margin:0 0 14px;line-height:1.5}
  .tm-plan-note{padding:11px 12px;line-height:1.5}
  .tm-billing-status{margin-bottom:11px;padding:12px 13px}
  .tm-account-gate{gap:11px;padding:18px}
  .tm-account-gate>p:not(.tm-eyebrow){line-height:1.55}
  .tm-setting-section{margin-top:15px;padding-top:14px}
  .tm-mobile-home{gap:11px}
  .tm-mobile-home .tm-card{border-radius:20px}
  .tm-mobile-status{min-height:0;padding:16px}
  .tm-mobile-status .tm-eyebrow,.tm-mobile-next .tm-eyebrow,.tm-mobile-holiday .tm-eyebrow{margin-bottom:10px}
  .tm-mobile-status h1{margin-bottom:12px}
  .tm-mobile-day-count{width:clamp(88px,19vw,118px);height:clamp(88px,19vw,118px)}
  .tm-mobile-day-count strong{font-size:clamp(32px,7vw,42px)}
  .tm-mobile-day-count span{margin-top:4px}
  .tm-mobile-next{min-height:0;padding:16px}
  .tm-mobile-next .tm-eyebrow{margin-bottom:10px}
  .tm-mobile-next>p:last-child{margin-top:8px;line-height:1.35}
  .tm-mobile-events{padding:16px}
  .tm-mobile-events h2{margin-bottom:12px}
  .tm-mobile-event{min-height:0;gap:10px;padding:10px 0}
  .tm-mobile-event-icon{width:32px;height:36px}
  .tm-mobile-event-copy{gap:4px}
  .tm-mobile-vacation{min-height:0;gap:10px;padding:14px 16px}
  .tm-mobile-vacation-icon{width:40px;height:42px}
  .tm-mobile-vacation-icon svg{width:36px;height:36px}
  .tm-mobile-vacation>span:nth-child(2){gap:5px}
  .tm-mobile-holiday{gap:9px;padding:16px}
  .tm-mobile-holiday>strong{margin-top:5px;line-height:1.22}
  .tm-settings-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .tm-settings-mode .tm-toggle-choice{min-width:0;min-height:43px;padding:6px 4px;font-size:9px;line-height:1.2;white-space:normal}
}
@media(max-width:520px){
  .tm-main{padding:14px 12px calc(18px + env(safe-area-inset-bottom))}
  .tm-page-head{margin-bottom:12px}
  .tm-grid,.tm-grid-home,.tm-calendar-layout,.tm-settings-layout,.tm-side-stack{gap:9px}
  .tm-grid-home>div:first-child,.tm-side-stack{gap:9px}
  .tm-card-pad,.tm-form-card,.tm-calendar-card,.tm-control-card{padding:12px}
  .tm-calendar-card{padding:10px 8px}
  .tm-status-card{padding:14px}
  .tm-stat-card{padding:9px 7px}
  .tm-quick-card{gap:8px;padding:10px}
  .tm-vacation-banner{padding:11px 12px}
  .tm-plan-card{padding:14px}
  .tm-plan-note{padding:10px}
  .tm-mobile-home{gap:9px}
  .tm-mobile-status{padding:14px}
  .tm-mobile-next,.tm-mobile-events,.tm-mobile-holiday{padding:14px}
  .tm-mobile-vacation{padding:12px 14px}
  .tm-mobile-events h2{margin-bottom:9px}
  .tm-mobile-event{gap:8px;padding:8px 0}
  .tm-mobile-event-icon{width:29px;height:32px}
  .tm-mobile-event-icon svg{width:22px;height:22px}
  .tm-settings-mode{gap:4px}
  .tm-settings-mode .tm-toggle-choice{font-size:8px}
}
@media(max-height:520px) and (pointer:coarse){
  .tm-mobile-home{gap:8px}
  .tm-mobile-status,.tm-mobile-next,.tm-mobile-events,.tm-mobile-vacation,.tm-mobile-holiday{min-height:0;padding:10px 12px}
  .tm-mobile-status{min-height:0}
  .tm-mobile-events h2{margin-bottom:7px}
  .tm-mobile-event{min-height:0;padding:5px 0}
}

/* Keep calendar row height stable when week numbers are toggled. */
@media(max-width:900px){.tm-calendar-grid,.tm-calendar-grid.has-week-numbers{grid-auto-rows:clamp(74px,15vw,116px)}.tm-week-number,.tm-day,.tm-calendar-grid:not(.has-week-numbers) .tm-day{min-height:0;height:100%}}
@media(max-width:520px){.tm-calendar-grid,.tm-calendar-grid.has-week-numbers{grid-auto-rows:clamp(62px,17vw,88px)}}
@media(max-width:360px){.tm-calendar-grid,.tm-calendar-grid.has-week-numbers{grid-auto-rows:58px}}

/* Keep the holiday ribbon below all shift labels in monthly calendar cells. */
.tm-day.has-holiday .tm-holiday-tag{position:absolute;z-index:2;top:auto;right:0;bottom:0;left:0;display:flex;height:clamp(10px,1.6vw,15px);align-items:center;justify-content:center;padding:0 1px;font-size:clamp(5px,1vw,10px);line-height:1}
.tm-day.has-holiday .tm-day-number{margin-top:0}
.tm-day.has-holiday .tm-day-type.is-other-shift-type{bottom:clamp(15px,2.2vw,21px)}
.tm-year-day.has-holiday{box-shadow:inset 0 -3px #c92d36}
@media(max-width:520px){.tm-day.has-holiday .tm-holiday-tag{height:9px;font-size:5px}.tm-day.has-holiday .tm-day-type.is-other-shift-type{bottom:12px}}

/* Vacation planner: projected work blocks and custom dates. */
.tm-vacation-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.tm-vacation-heading .tm-eyebrow{margin-bottom:8px;color:#c6a456}
.tm-vacation-heading h1{margin:0;font:600 clamp(28px,3vw,40px)/1.05 var(--display);letter-spacing:-.035em}
.tm-vacation-heading-icon{display:grid;width:58px;height:58px;place-items:center;color:#c6a456}
.tm-vacation-heading-icon svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-vacation-page{display:grid;gap:14px}
.tm-vacation-explainer{padding:14px 16px;border:1px solid #303640;border-radius:17px;background:#151a20;color:#aab1bb;font-size:13px;line-height:1.45}
.tm-vacation-add{overflow:hidden;border:1px solid rgba(217,81,164,.56);border-radius:16px;background:rgba(93,23,69,.24);color:#ec79bd}
.tm-vacation-add summary{display:flex;min-height:54px;align-items:center;justify-content:center;gap:12px;padding:12px 16px;list-style:none;text-align:center;font-size:14px;font-weight:650;cursor:pointer}
.tm-vacation-add summary::-webkit-details-marker{display:none}
.tm-vacation-add summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
.tm-vacation-add[open] summary{border-bottom:1px solid rgba(217,81,164,.25)}
.tm-vacation-add form{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px}
.tm-vacation-add .tm-field-wide{grid-column:1/-1}
.tm-vacation-custom,.tm-vacation-projected{display:grid;gap:10px}
.tm-vacation-section-label{margin:0;color:#c6a456;font-size:10px;font-weight:750;letter-spacing:.17em}
.tm-vacation-cycle-list{display:grid;gap:8px}
.tm-vacation-cycle-card{display:grid;min-height:78px;grid-template-columns:44px minmax(0,1fr) 34px;align-items:center;gap:12px;padding:12px 14px;border:1px solid #303640;border-radius:18px;background:#151a20;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.tm-vacation-cycle-card:hover{transform:translateY(-1px);border-color:#56435b;background:#191a22}
.tm-vacation-cycle-card:has(input:checked){border-color:rgba(217,81,164,.64);background:linear-gradient(110deg,rgba(217,81,164,.12),transparent 58%),#171a20}
.tm-vacation-cycle-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:rgba(217,81,164,.15);color:#ed7ac0}
.tm-vacation-cycle-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-vacation-cycle-copy{display:grid;min-width:0;gap:4px}
.tm-vacation-cycle-copy strong{font-size:13px;font-weight:650;line-height:1.3}
.tm-vacation-cycle-copy small{color:#a0a7b1;font-size:11px}
.tm-vacation-cycle-card input{width:22px;height:22px;margin:0;justify-self:end;accent-color:#d6ad57;cursor:pointer}
.tm-vacation-empty-custom{margin:0;padding:13px 14px;border:1px solid var(--line);border-radius:13px;color:#9098a3;font-size:12px}
.tm-vacation-custom-list .tm-list-item{min-height:68px;border-radius:15px}
@media(max-width:900px){.tm-vacation-heading{margin-bottom:14px}.tm-vacation-heading .tm-eyebrow{margin-bottom:7px}.tm-vacation-heading h1{font-size:29px}.tm-vacation-heading-icon,.tm-vacation-heading-icon svg{width:48px;height:48px}.tm-vacation-page{gap:10px}.tm-vacation-explainer{padding:12px 13px;border-radius:15px;font-size:11px}.tm-vacation-add summary{min-height:48px;font-size:12px}.tm-vacation-section-label{font-size:9px}.tm-vacation-cycle-list{gap:7px}.tm-vacation-cycle-card{min-height:74px;grid-template-columns:40px minmax(0,1fr) 30px;gap:10px;padding:10px 12px;border-radius:17px}.tm-vacation-cycle-icon{width:38px;height:40px;border-radius:13px}.tm-vacation-cycle-icon svg{width:23px;height:23px}.tm-vacation-cycle-copy strong{font-size:12px}.tm-vacation-cycle-copy small{font-size:10px}.tm-vacation-cycle-card input{width:20px;height:20px}}
@media(max-width:380px){.tm-vacation-heading h1{font-size:27px}.tm-vacation-heading-icon,.tm-vacation-heading-icon svg{width:42px;height:42px}.tm-vacation-cycle-card{grid-template-columns:36px minmax(0,1fr) 26px;gap:8px;padding-inline:9px}.tm-vacation-cycle-icon{width:35px;height:36px}.tm-vacation-cycle-copy strong{font-size:11px}.tm-vacation-cycle-copy small{font-size:9px}}

/* Bag checklist styled to match the app's compact mobile layout. */
.tm-bag-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.tm-bag-heading .tm-eyebrow{margin:0 0 8px;color:#c6a456}
.tm-bag-heading h1{margin:0;font:600 clamp(27px,3vw,38px)/1.08 var(--display);letter-spacing:-.035em}
.tm-bag-heading-icon{display:grid;width:58px;height:58px;place-items:center;color:#c6a456}
.tm-bag-heading-icon svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-bag-page{display:grid;gap:12px}
.tm-bag-progress{display:grid;gap:8px;margin:0;padding:13px 15px;border:1px solid #303640;border-radius:16px;background:#151a20}
.tm-bag-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tm-bag-progress span{color:#a4abb4;font-size:11px}
.tm-bag-progress strong{margin:0;color:#a4abb4;font:500 11px var(--body)}
.tm-bag-progress .tm-progress-track{width:100%;height:5px;background:#0c0e12}
.tm-bag-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;margin:0}
.tm-bag-add-form .tm-field{min-width:0}
.tm-bag-add-form .tm-field input{min-height:48px;border-radius:14px}
.tm-bag-add-form>.tm-button{min-height:48px;padding-inline:18px;border-radius:14px;white-space:nowrap}
.tm-bag-list{display:grid;gap:7px;margin:0}
.tm-bag-item{min-height:64px;gap:11px;padding:10px 12px;border-radius:15px;background:#151a20}
.tm-bag-item .tm-list-copy strong{font-size:12px}
.tm-bag-switch{position:relative;display:block;width:48px;height:29px;flex:none;cursor:pointer}
.tm-bag-switch input{position:absolute;width:1px;height:1px;opacity:0}
.tm-bag-switch span{position:absolute;inset:0;border:1px solid #6c7580;border-radius:99px;background:#222832;transition:background .2s,border-color .2s}
.tm-bag-switch span:after{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#f1f3f5;box-shadow:0 1px 3px #0006;content:"";transition:transform .2s}
.tm-bag-switch input:checked+span{border-color:#c6a456;background:#6b592f}
.tm-bag-switch input:checked+span:after{transform:translateX(19px);background:#f2ca62}
.tm-bag-switch input:focus-visible+span{outline:2px solid #f3bf36;outline-offset:2px}
.tm-bag-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:3px}
.tm-bag-actions .tm-button{display:flex;min-width:0;min-height:58px;align-items:center;justify-content:center;gap:8px;padding:9px 10px;border-radius:15px;font-size:11px;line-height:1.25}
.tm-bag-actions svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.tm-bag-heading{margin-bottom:13px}.tm-bag-heading .tm-eyebrow{margin-bottom:7px}.tm-bag-heading h1{font-size:29px}.tm-bag-heading-icon,.tm-bag-heading-icon svg{width:48px;height:48px}.tm-bag-page{gap:9px}.tm-bag-progress{gap:7px;padding:11px 13px;border-radius:15px}.tm-bag-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;flex-direction:initial;gap:7px;margin:0}.tm-bag-add-form .tm-field input,.tm-bag-add-form>.tm-button{min-height:46px}.tm-bag-add-form>.tm-button{padding-inline:13px;font-size:12px}.tm-bag-list{gap:6px}.tm-bag-item{min-height:62px;padding:9px 11px}.tm-bag-actions{gap:7px}.tm-bag-actions .tm-button{min-height:54px;padding:8px;font-size:10px}}
@media(max-width:360px){.tm-bag-heading h1{font-size:26px}.tm-bag-heading-icon,.tm-bag-heading-icon svg{width:43px;height:43px}.tm-bag-item{gap:8px;padding-inline:8px}.tm-bag-switch{width:43px;height:27px}.tm-bag-switch span:after{width:19px;height:19px}.tm-bag-switch input:checked+span:after{transform:translateX(16px)}.tm-bag-actions{gap:5px}.tm-bag-actions .tm-button{gap:5px;font-size:9px}.tm-bag-actions svg{width:17px;height:17px}}
/* Bag status and checklist states */
.tm-bag-progress>div:first-child{justify-content:flex-start}
.tm-bag-progress>div:first-child>strong{display:flex;align-items:center;gap:5px;color:#f0f1f3;font-size:13px;font-weight:650}
.tm-bag-progress>div:first-child>strong b{color:inherit;font-weight:750}
.tm-bag-progress>div:first-child>em{margin-left:auto;padding:6px 12px;border:1px solid #303640;border-radius:99px;background:#1c2229;color:#a4abb4;font-size:12px;font-style:normal;font-weight:700;line-height:1}
.tm-bag-progress .tm-progress-track{height:8px;overflow:hidden;border-radius:99px;background:#252b32}
.tm-bag-progress .tm-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c49b43,#edbd4c);transition:width .25s ease}
.tm-bag-progress.is-complete{border-color:#3b7158;background:linear-gradient(120deg,rgba(60,133,94,.12),transparent 65%),#151a20}
.tm-bag-progress.is-complete>div:first-child>em{border-color:#35664f;background:#172a23;color:#91d3ad}
.tm-bag-progress.is-complete .tm-progress-track{background:#253b31}
.tm-bag-progress.is-complete .tm-progress-track i{background:linear-gradient(90deg,#3d9b6c,#73d29c)}
.tm-bag-ready{display:flex;min-height:58px;align-items:center;gap:12px;padding:12px 16px;border:1px solid #4b8e6a;border-radius:15px;background:#141a1d;color:#e5e9eb;font-size:14px}
.tm-bag-ready svg{width:23px;height:23px;flex:none;fill:none;stroke:#72c996;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tm-bag-item.is-packed{opacity:1;background:#151a20;transform:none}
.tm-bag-item.is-packed .tm-list-copy strong{text-decoration:none}
.tm-bag-switch{width:38px;height:38px}
.tm-bag-switch span{border-color:#343b44;border-radius:10px;background:#171c22}
.tm-bag-switch span:after{top:0;left:0;width:100%;height:100%;border-radius:9px;background:transparent;box-shadow:none;content:""}
.tm-bag-switch input:checked+span{border-color:#c6a456;background:#c6a456}
.tm-bag-switch input:checked+span:after{display:grid;place-items:center;transform:none;background:transparent;color:#211a09;content:"✓";font-size:23px;font-weight:700}
.tm-bag-reminder{display:flex;align-items:flex-start;gap:11px;margin-top:4px;padding:13px 14px;border:1px solid #292f38;border-radius:15px;background:#12161c;color:#a4abb4;font-size:12px;line-height:1.45}
.tm-bag-reminder svg{width:19px;height:19px;flex:none;fill:none;stroke:#c6a456;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.tm-bag-heading{margin-bottom:11px}.tm-bag-heading h1{font-size:clamp(29px,7vw,38px)}.tm-bag-page{gap:10px}.tm-bag-progress{padding:14px 15px;gap:12px}.tm-bag-progress span{font-size:12px}.tm-bag-progress>div:first-child>strong{font-size:14px}.tm-bag-progress>div:first-child>em{padding:7px 12px;font-size:13px}.tm-bag-progress .tm-progress-track{height:8px}.tm-bag-ready{min-height:60px;font-size:14px}.tm-bag-list{gap:8px}.tm-bag-item{min-height:64px;padding:10px 12px;border:1px solid #353b44;border-radius:16px}.tm-bag-item .tm-list-copy strong{font-size:14px}.tm-bag-switch{width:37px;height:37px}.tm-bag-reminder{margin-top:8px;padding:13px 14px;font-size:12px}.tm-bag-actions{display:none}}
@media(max-width:360px){.tm-bag-progress{padding:12px}.tm-bag-progress span{font-size:11px}.tm-bag-item .tm-list-copy strong{font-size:12px}}
.tm-bag-progress>div:first-child>.tm-bag-percent{display:inline-flex;flex:none;align-items:center;justify-content:center;margin-left:auto;padding:6px 12px;border:1px solid #303640;border-radius:99px;background:#1c2229;color:#a4abb4;font-size:12px;font-style:normal;font-weight:700;line-height:1;white-space:nowrap}
.tm-bag-progress.is-complete>div:first-child>.tm-bag-percent{border-color:#35664f;background:#172a23;color:#91d3ad}
@media(max-width:900px){.tm-bag-progress>div:first-child>.tm-bag-percent{padding:7px 12px;font-size:13px}}
.tm-bag-actions{display:grid}
@media(max-width:900px){.tm-bag-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}.tm-bag-actions .tm-button{min-height:48px;padding:8px 6px;font-size:10px}}
@media(max-width:380px){.tm-bag-actions{grid-template-columns:1fr}.tm-bag-actions .tm-button{min-height:44px}}
/* Documents screen, matched to the TurnoMiner mobile reference */
.tm-documents-card{width:100%;padding:11px 10px 10px;border:1px solid #2d333c;border-radius:17px;background:linear-gradient(145deg,#1a2028 0%,#14191f 58%,#11161b 100%);box-shadow:0 9px 26px #0002;color:#f1f2f4}
.tm-day-pernocta{align-self:flex-end;color:#c3a65d;font:500 12px/1 var(--display)}
.tm-documents-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.tm-documents-title{display:flex;align-items:center;gap:11px;min-width:0}
.tm-documents-icon{display:grid;width:19px;height:27px;place-items:center;color:#f5bd2e;flex:none}
.tm-documents-icon svg{width:20px;height:20px}
.tm-documents-icon svg,.tm-documents-add svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-documents-title p,.tm-doc-next-label{margin:0 0 3px;color:#c6a456;font:700 9px/1.2 var(--display);letter-spacing:1.4px}
.tm-documents-title h1{margin:0;color:#f2f3f5;font:700 19px/1.18 var(--display);letter-spacing:.05px}
.tm-documents-add{display:grid;width:43px;height:43px;place-items:center;border:1px solid #2b323a;border-radius:13px;background:#141a20;color:#f4bd2d;cursor:pointer;flex:none}
.tm-documents-add svg{width:20px;height:20px}
.tm-documents-intro{max-width:620px;margin:0 0 12px;color:#aab0ba;font:400 11.5px/1.38 var(--body)}
.tm-doc-next{min-height:141px;margin:0 0 11px;padding:13px 14px 12px;border:1px solid #c5a04d;border-radius:15px;background:linear-gradient(135deg,#252a2d,#202529 62%,#1a2024);display:flex;flex-direction:column;align-items:flex-start}
.tm-doc-next-label{margin-bottom:5px;font-size:9px;letter-spacing:1.35px}
.tm-doc-next>strong{font:700 15px/1.25 var(--display);color:#f1f2f3}
.tm-doc-next>small{margin-top:4px;color:#aeb4bd;font:400 11px/1.3 var(--body)}
.tm-doc-next-meta{margin-top:6px;color:#d1ae57;font:600 10px/1.2 var(--body)}
.tm-doc-renew{display:inline-flex;min-height:39px;align-items:center;gap:8px;margin-top:10px;padding:0 12px;border:1px solid #272e35;border-radius:12px;background:#141a20;color:#e5e7ea;font:500 11px var(--body);cursor:pointer}
.tm-doc-renew svg{width:16px;height:16px;fill:none;stroke:#d1d7dd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tm-doc-list{display:grid;gap:8px}
.tm-doc-row{display:flex;min-height:88px;align-items:center;gap:8px;padding:10px 9px 9px 12px;border:1px solid #292f37;border-radius:14px;background:linear-gradient(115deg,#171c22,#13181d);}
.tm-doc-row-copy{display:flex;min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:2px}
.tm-doc-row-copy strong{overflow:hidden;max-width:100%;color:#e6e8eb;font:650 12px/1.2 var(--display);text-overflow:ellipsis;white-space:nowrap}
.tm-doc-row-copy small{color:#929aa5;font:400 10px/1.2 var(--body)}
.tm-doc-row-copy span{color:#d7ae34;font:500 9px/1.2 var(--body)}
.tm-doc-row-actions{display:flex;align-items:center;gap:4px;flex:none}
.tm-doc-row-actions button{display:grid;width:37px;height:43px;place-items:center;border:1px solid #2c333c;border-radius:12px;background:#151b21;color:#c3a04f;cursor:pointer}
.tm-doc-row-actions button:first-child{color:#c9a552}
.tm-doc-row-actions button:last-child{color:#ed6266}
.tm-doc-row-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tm-doc-empty{padding:17px 12px;border:1px solid #292f37;border-radius:14px;color:#9ca4af;font:400 12px/1.45 var(--body)}
.tm-doc-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 11px;padding:14px;border:1px solid #303741;border-radius:15px;background:#141a20}
.tm-doc-form h2{grid-column:1/-1;margin:0;color:#f0f1f3;font:650 15px var(--display)}
.tm-doc-field{display:grid;gap:6px;color:#aeb5bf;font:500 10px var(--body)}
.tm-doc-field input,.tm-doc-field select{width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid #303741;border-radius:10px;background:#10151a;color:#e8eaed;font:400 12px var(--body)}
.tm-doc-form-actions{display:flex;grid-column:1/-1;gap:8px;flex-wrap:wrap}
.tm-doc-form-actions .tm-button{min-height:39px;padding:0 12px;font-size:11px}
@media(min-width:901px){.tm-documents-card{max-width:1000px;margin-inline:auto;padding:22px;border-radius:22px}.tm-documents-head{margin-bottom:13px}.tm-documents-title{gap:14px}.tm-documents-icon,.tm-documents-icon svg{width:25px;height:28px}.tm-documents-title p{font-size:11px}.tm-documents-title h1{font-size:25px}.tm-documents-add{width:50px;height:50px}.tm-documents-intro{font-size:13px;margin-bottom:17px}.tm-doc-next{min-height:158px;padding:17px 19px;margin-bottom:14px}.tm-doc-next>strong{font-size:18px}.tm-doc-next>small{font-size:12px}.tm-doc-next-meta{font-size:11px}.tm-doc-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tm-doc-row{min-height:92px;padding:12px}.tm-doc-row-copy strong{font-size:13px}.tm-doc-row-copy small{font-size:11px}.tm-doc-row-copy span{font-size:10px}.tm-doc-row-actions{gap:6px}.tm-doc-row-actions button{width:40px;height:45px}}
@media(max-width:380px){.tm-documents-card{padding:9px 8px}.tm-documents-intro{font-size:10.5px}.tm-doc-row{gap:5px;padding-inline:8px}.tm-doc-row-actions{gap:3px}.tm-doc-row-actions button{width:33px;height:40px}.tm-doc-row-actions svg{width:15px;height:15px}.tm-doc-row-copy small{font-size:9px}}

/* Calendar title, month label and viewport-filling month grid */
.tm-calendar-actions{transform:translateY(12px)}
.tm-calendar-page-head h1{font-size:clamp(25px,3vw,40px)}
.tm-calendar-screen{min-height:calc(100dvh - 69px - 44px - 72px - 82px);grid-template-rows:auto auto minmax(0,1fr)}
.tm-calendar-screen.is-settings-open{grid-template-rows:auto auto auto minmax(0,1fr)}
.tm-calendar-card.is-month-view{height:100%;min-height:0}
.tm-calendar-card.is-month-view>.tm-calendar-grid{height:100%;grid-template-rows:clamp(34px,5vh,54px) repeat(var(--calendar-week-count,6),minmax(0,1fr))}
.tm-calendar-card.is-month-view .tm-week-number,.tm-calendar-card.is-month-view .tm-day{height:auto;min-height:0}
.tm-calendar-screen.is-year-view{height:auto;min-height:0;grid-template-rows:auto auto auto auto}
@media(max-width:900px){.tm-calendar-page-head h1{font-size:clamp(22px,7vw,28px)}.tm-calendar-page-head .tm-calendar-actions{transform:translateY(10px)}}
@media(max-width:380px){.tm-calendar-page-head h1{font-size:clamp(21px,6.6vw,25px)}}

/* Keep the monthly calendar fitted between the mobile header and bottom tabs. */
@media(max-width:900px){
  body.tm-calendar-view-active{height:100dvh;min-height:0;overflow:hidden}
  body.tm-calendar-view-active .tm-main-column{display:flex;height:100dvh;min-height:0;flex-direction:column;overflow:hidden}
  body.tm-calendar-view-active .tm-topbar{position:relative;top:auto;flex:none}
  body.tm-calendar-view-active .tm-main{display:flex;min-height:0;height:auto;flex:1;flex-direction:column;overflow:hidden;padding:10px 12px calc(72px + env(safe-area-inset-bottom))}
  body.tm-calendar-view-active .tm-calendar-page-head{flex:none;margin:0 0 10px}
  body.tm-calendar-view-active .tm-calendar-screen{height:auto;min-height:0;flex:1;grid-template-rows:auto auto minmax(0,1fr);gap:9px}
  body.tm-calendar-view-active .tm-calendar-screen.is-settings-open{grid-template-rows:auto auto auto minmax(0,1fr)}
  body.tm-calendar-view-active .tm-calendar-card.is-month-view{height:100%;min-height:0}
  body.tm-calendar-view-active .tm-calendar-card.is-month-view>.tm-calendar-grid{height:100%;grid-template-rows:clamp(32px,5vh,44px) repeat(var(--calendar-week-count,6),minmax(0,1fr))}
  body.tm-calendar-view-active .tm-calendar-card.is-month-view .tm-week-number,body.tm-calendar-view-active .tm-calendar-card.is-month-view .tm-day{height:auto;min-height:0}
}

/* Higher contrast, steadier weight and readable supporting copy throughout the app. */
.tm-app{--muted:#bdc3cc;--subtle:#929ba7;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}
.tm-main,.tm-feature-dialog,.tm-sidebar,.tm-topbar,.tm-mobile-nav{text-rendering:optimizeLegibility}
.tm-page-lead{color:#c2c8d1;font-size:14px;line-height:1.65}
.tm-disclaimer{color:#a5adb8;font-size:11px;line-height:1.6}
.tm-eyebrow{color:#edc35c;font-size:11px}
.tm-main .tm-card-title p,.tm-main .tm-list-copy small,.tm-main .tm-list-meta small,.tm-main .tm-control-card>p,.tm-main .tm-setting-section>p,.tm-main .tm-field,.tm-main .tm-documents-intro,.tm-main .tm-doc-next>small,.tm-main .tm-doc-next-meta,.tm-main .tm-doc-row-copy small,.tm-main .tm-doc-row-copy span,.tm-main .tm-vacation-explainer,.tm-main .tm-vacation-cycle-copy small,.tm-main .tm-bag-progress span{color:#b7bec8;font-size:max(10px,.88em);line-height:1.5}
.tm-main .tm-stat-label,.tm-main .tm-stat-detail,.tm-main .tm-week-day span,.tm-main .tm-week-label,.tm-main .tm-week-number,.tm-main .tm-day-type,.tm-main .tm-year-label,.tm-main .tm-year-day{ text-shadow:0 0 .01px currentColor }
.tm-topbar .tm-breadcrumb,.tm-top-actions .tm-online{color:#b0b7c1}
.tm-sidebar .tm-side-caption,.tm-sidebar .tm-profile-copy small,.tm-sidebar .tm-trial-card small{color:#a0a8b4}
.tm-main .tm-list-copy strong,.tm-main .tm-card-title h2,.tm-main .tm-card-title h3,.tm-main .tm-doc-row-copy strong,.tm-main .tm-setting-section h3{color:#f5f6f8}
.tm-feature-intro,.tm-faq-list details p,.tm-access-option small{color:#bdc4ce;font-size:13px;line-height:1.65}
.tm-faq-list summary,.tm-access-option strong{color:#f3f4f6;font-size:14px}
.tm-main .tm-empty,.tm-main .tm-control-meta div,.tm-main .tm-next-line,.tm-main .tm-calendar-settings label{color:#b8c0ca;font-size:11px;line-height:1.55}
.tm-main .tm-notice{color:#d2c8ed}
.tm-main .tm-stat-label{color:#b7bec8;font-size:11px}
.tm-main .tm-stat-detail{color:#9fa8b4;font-size:10px}
.tm-field input::placeholder,.tm-doc-field input::placeholder{color:#9ba4b0}
.tm-settings-main{display:grid;min-width:0;align-content:start;gap:13px}
.tm-account-card{display:flex;min-width:0;min-height:88px;align-items:center;gap:13px;padding:15px 17px;border:1px solid rgba(245,180,0,.27);border-radius:15px;background:linear-gradient(125deg,rgba(245,180,0,.09),rgba(255,255,255,.018) 58%),#14181e}
.tm-account-avatar{display:grid;width:44px;height:44px;place-items:center;flex:none;border:1px solid rgba(245,180,0,.34);border-radius:50%;background:rgba(245,180,0,.1);color:#f4c547;font:700 17px var(--display);text-transform:uppercase}
.tm-account-avatar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tm-account-copy{display:grid;min-width:0;flex:1;gap:3px}
.tm-account-copy>span{color:#e2bb50;font-size:9px;font-weight:750;letter-spacing:.14em}
.tm-account-copy strong{overflow:hidden;color:#f2f3f5;font:650 15px/1.25 var(--display);text-overflow:ellipsis;white-space:nowrap}
.tm-account-copy small{overflow:hidden;color:#b3bac4;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.tm-account-lock{display:grid;width:30px;height:30px;place-items:center;flex:none;border:1px solid #343b44;border-radius:9px;color:#c7a74e}
.tm-account-lock svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-account-card.is-logged-out .tm-account-copy{margin-right:auto}
.tm-mobile-nav button{font-size:9px}
.tm-mobile-nav button.is-active{color:#ffda66}
@media(max-width:900px){.tm-main .tm-page-lead{font-size:13px}.tm-main .tm-eyebrow{font-size:10px}.tm-feature-intro,.tm-faq-list details p,.tm-access-option small{font-size:12px}.tm-mobile-nav button{font-size:9px}}

/* Soft transitions between the bottom navigation tabs. */
.tm-main.tm-view-change{animation:tm-view-enter .28s cubic-bezier(.2,.7,.2,1) both}
@keyframes tm-view-enter{from{opacity:.55;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
  .tm-mobile-nav{isolation:isolate}
  .tm-mobile-nav:before{position:absolute;z-index:0;top:8px;left:var(--active-tab-left,7px);width:var(--active-tab-width,20%);height:47px;border:1px solid rgba(245,180,0,.2);border-radius:10px;background:linear-gradient(145deg,rgba(245,180,0,.15),rgba(245,180,0,.055));content:"";transition:left .32s cubic-bezier(.2,.7,.2,1),width .25s ease,background-color .25s ease}
  .tm-mobile-nav button,.tm-mobile-nav button.is-active{position:relative;z-index:1;background:transparent;transition:color .25s ease,transform .28s cubic-bezier(.2,.7,.2,1)}
  .tm-mobile-nav button svg{transition:transform .28s cubic-bezier(.2,.7,.2,1),filter .25s ease}
  .tm-mobile-nav button.is-active svg{transform:translateY(-1px) scale(1.08);filter:drop-shadow(0 0 5px rgba(245,180,0,.24))}
}
.tm-light-mode .tm-mobile-nav:before{border-color:rgba(173,126,0,.24);background:linear-gradient(145deg,rgba(245,180,0,.2),rgba(245,180,0,.09))}
@media(prefers-reduced-motion:reduce){.tm-main.tm-view-change{animation:none}.tm-mobile-nav:before,.tm-mobile-nav button,.tm-mobile-nav button svg{transition:none!important}}

/* Light theme surfaces for components with their own dark backgrounds. */
.tm-light-mode .tm-notice,.tm-light-mode .tm-mobile-home .tm-card,.tm-light-mode .tm-mobile-day-count,.tm-light-mode .tm-calendar-gear,.tm-light-mode .tm-calendar-screen .tm-cal-today,.tm-light-mode .tm-calendar-grid,.tm-light-mode .tm-week-number,.tm-light-mode .tm-calendar-settings,.tm-light-mode .tm-year-month,.tm-light-mode .tm-nav-tools .tm-nav-link,.tm-light-mode .tm-rate-link,.tm-light-mode .tm-feature-close,.tm-light-mode .tm-faq-list details,.tm-light-mode .tm-vacation-explainer,.tm-light-mode .tm-vacation-cycle-card,.tm-light-mode .tm-bag-progress,.tm-light-mode .tm-bag-item,.tm-light-mode .tm-documents-card,.tm-light-mode .tm-documents-add,.tm-light-mode .tm-doc-next,.tm-light-mode .tm-doc-renew,.tm-light-mode .tm-doc-row,.tm-light-mode .tm-doc-row-actions button,.tm-light-mode .tm-doc-form,.tm-light-mode .tm-account-card,.tm-light-mode .tm-button-secondary,.tm-light-mode .tm-modal-close,.tm-light-mode .tm-auth-tabs,.tm-light-mode .tm-auth-tabs button.is-active,.tm-light-mode .tm-toast{background:#fff;color:#20252b}
.tm-light-mode .tm-field input,.tm-light-mode .tm-field select,.tm-light-mode .tm-report-form textarea,.tm-light-mode .tm-doc-field input,.tm-light-mode .tm-doc-field select{border-color:#c7ced7;background:#fff;color:#20252b}
.tm-light-mode .tm-field input::placeholder,.tm-light-mode .tm-report-form textarea::placeholder,.tm-light-mode .tm-doc-field input::placeholder{color:#737d89}
.tm-light-mode .tm-week-label{background:#eef0f3;color:#59636f}
.tm-light-mode .tm-day,.tm-light-mode .tm-year-day{background:#f4f6f8;color:#20252b}
.tm-light-mode .tm-day.is-empty{background:#e9edf1}
.tm-light-mode .tm-day-type,.tm-light-mode .tm-calendar-reading,.tm-light-mode .tm-doc-next small,.tm-light-mode .tm-doc-row-copy small,.tm-light-mode .tm-documents-intro,.tm-light-mode .tm-vacation-explainer,.tm-light-mode .tm-control-meta div,.tm-light-mode .tm-notice{color:#56616e}
.tm-light-mode .tm-calendar-gear,.tm-light-mode .tm-calendar-screen .tm-cal-today,.tm-light-mode .tm-calendar-settings,.tm-light-mode .tm-week-number,.tm-light-mode .tm-feature-close,.tm-light-mode .tm-documents-card,.tm-light-mode .tm-documents-add,.tm-light-mode .tm-doc-next,.tm-light-mode .tm-doc-renew,.tm-light-mode .tm-doc-row,.tm-light-mode .tm-doc-row-actions button,.tm-light-mode .tm-doc-form,.tm-light-mode .tm-account-card,.tm-light-mode .tm-cycle-choice,.tm-light-mode .tm-toggle-choice,.tm-light-mode .tm-bag-progress,.tm-light-mode .tm-bag-item,.tm-light-mode .tm-vacation-cycle-card{border-color:#d0d6de}
.tm-light-mode .tm-calendar-grid{background:#d0d6de}
.tm-light-mode .tm-progress-track,.tm-light-mode .tm-bag-progress .tm-progress-track{background:#dce1e7}
.tm-light-mode .tm-mobile-nav,.tm-light-mode .tm-topbar,.tm-light-mode .tm-sidebar{border-color:#d5dae1}
body.tm-theme-transition,body.tm-theme-transition *{transition:background .38s ease,color .38s ease,border-color .38s ease,box-shadow .38s ease!important}
@media(prefers-reduced-motion:reduce){body.tm-theme-transition,body.tm-theme-transition *{transition:none!important}}

/* Keep shift colors visible against the light calendar surfaces. */
.tm-light-mode .tm-day.is-work,.tm-light-mode .tm-year-day.is-work{background:rgba(245,180,0,.24);color:#302500}
.tm-light-mode .tm-day.is-night,.tm-light-mode .tm-year-day.is-night{background:rgba(130,105,220,.22);color:#302653}
.tm-light-mode .tm-day.is-morning,.tm-light-mode .tm-year-day.is-morning{background:rgba(130,105,220,.2);color:#302653}
.tm-light-mode .tm-day.is-afternoon,.tm-light-mode .tm-year-day.is-afternoon{background:rgba(92,117,214,.2);color:#26315b}
.tm-light-mode .tm-day.is-vacation,.tm-light-mode .tm-year-day.is-vacation{background:rgba(217,81,164,.18);color:#572544}

/* Short, consistent feedback for popups and button actions. */
.tm-feature-backdrop{animation:tm-overlay-in .24s cubic-bezier(.2,.75,.25,1) both}
.tm-feature-dialog{animation:tm-dialog-in .28s cubic-bezier(.2,.75,.25,1) both;transform-origin:center top}
.tm-feature-backdrop.is-closing{animation:tm-overlay-out .18s ease-in both;pointer-events:none}
.tm-feature-backdrop.is-closing .tm-feature-dialog{animation:tm-dialog-out .18s ease-in both}
#auth-modal:not([hidden]){animation:tm-overlay-in .22s cubic-bezier(.2,.75,.25,1) both}
#auth-modal:not([hidden]) .tm-auth-modal{animation:tm-dialog-in .26s cubic-bezier(.2,.75,.25,1) both;transform-origin:center}
#auth-modal.is-closing{animation:tm-overlay-out .18s ease-in both;pointer-events:none}
#auth-modal.is-closing .tm-auth-modal{animation:tm-dialog-out .18s ease-in both}
.tm-mini-calendar{animation:tm-dialog-in .24s cubic-bezier(.2,.75,.25,1) both;transform-origin:top right}
.tm-calendar-settings.is-open{animation:tm-settings-in .24s cubic-bezier(.2,.75,.25,1) both;transform-origin:top}
.tm-toast{transition:opacity .22s ease,transform .28s cubic-bezier(.2,.75,.25,1)}
:is(.tm-button,.tm-icon-button,.tm-calendar-screen button,.tm-nav-link,.tm-feature-close,.tm-modal-close,.tm-auth-tabs button,.tm-mini-calendar button,.tm-doc-row-actions button,.tm-cycle-choice,.tm-toggle-choice,.tm-cal-today,.tm-calendar-gear,.tm-month-menu,.tm-side-action){transition:transform .18s cubic-bezier(.2,.75,.25,1),background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}
:is(.tm-button,.tm-icon-button,.tm-calendar-screen button,.tm-nav-link,.tm-feature-close,.tm-modal-close,.tm-auth-tabs button,.tm-mini-calendar button,.tm-doc-row-actions button,.tm-cycle-choice,.tm-toggle-choice,.tm-cal-today,.tm-calendar-gear,.tm-month-menu,.tm-side-action):active{transform:scale(.97)}
:is(button,a,[role="button"]):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(hover:hover){:is(.tm-button,.tm-icon-button,.tm-calendar-screen button,.tm-nav-link,.tm-feature-close,.tm-modal-close,.tm-auth-tabs button,.tm-mini-calendar button,.tm-doc-row-actions button,.tm-cycle-choice,.tm-toggle-choice,.tm-cal-today,.tm-calendar-gear,.tm-month-menu,.tm-side-action):not(:disabled):hover{filter:brightness(1.08)}}
@keyframes tm-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes tm-overlay-out{from{opacity:1}to{opacity:0}}
@keyframes tm-dialog-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tm-dialog-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.99)}}
@keyframes tm-settings-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.tm-feature-backdrop,.tm-feature-dialog,.tm-feature-backdrop.is-closing,.tm-feature-backdrop.is-closing .tm-feature-dialog,#auth-modal:not([hidden]),#auth-modal:not([hidden]) .tm-auth-modal,#auth-modal.is-closing,#auth-modal.is-closing .tm-auth-modal,.tm-mini-calendar,.tm-calendar-settings.is-open{animation:none!important}:is(.tm-button,.tm-icon-button,.tm-calendar-screen button,.tm-nav-link,.tm-feature-close,.tm-modal-close,.tm-auth-tabs button,.tm-mini-calendar button,.tm-doc-row-actions button,.tm-cycle-choice,.tm-toggle-choice,.tm-cal-today,.tm-calendar-gear,.tm-month-menu,.tm-side-action){transition:none!important}}

/* Keep month navigation animated independently of button press feedback. */
.tm-calendar-screen .tm-calendar-card.is-month-view .tm-calendar-grid.tm-swipe-next{animation:tm-calendar-swipe-next .36s cubic-bezier(.22,.72,.24,1) both!important;will-change:transform,opacity}
.tm-calendar-screen .tm-calendar-card.is-month-view .tm-calendar-grid.tm-swipe-prev{animation:tm-calendar-swipe-prev .36s cubic-bezier(.22,.72,.24,1) both!important;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.tm-calendar-screen .tm-calendar-card.is-month-view .tm-calendar-grid.tm-swipe-next,.tm-calendar-screen .tm-calendar-card.is-month-view .tm-calendar-grid.tm-swipe-prev{animation:none!important;will-change:auto}}
.tm-light-mode .tm-day.is-work .tm-day-type{color:#705400}
.tm-light-mode .tm-day.is-night .tm-day-type,.tm-light-mode .tm-day.is-morning .tm-day-type{color:#5b429b}
.tm-light-mode .tm-day.is-afternoon .tm-day-type{color:#394e9b}
.tm-light-mode .tm-day.has-holiday .tm-holiday-tag{background:#c92d36;color:#fff}

/* Readable bag text in light mode. */
.tm-light-mode .tm-bag-heading h1,.tm-light-mode .tm-bag-progress span,.tm-light-mode .tm-bag-progress strong,.tm-light-mode .tm-bag-item,.tm-light-mode .tm-bag-item .tm-list-copy,.tm-light-mode .tm-bag-item .tm-list-copy strong,.tm-light-mode .tm-bag-actions .tm-button-secondary{color:#171a1e}
.tm-light-mode .tm-bag-item .tm-delete{color:#59636f}
.tm-light-mode .tm-bag-item .tm-delete:hover{color:#b8323a}

/* Readable documents text in light mode. */
.tm-light-mode .tm-documents-card,.tm-light-mode .tm-documents-card h1,.tm-light-mode .tm-documents-card h2,.tm-light-mode .tm-documents-card h3,.tm-light-mode .tm-documents-card p,.tm-light-mode .tm-documents-card strong,.tm-light-mode .tm-documents-card small,.tm-light-mode .tm-documents-card span,.tm-light-mode .tm-documents-card label,.tm-light-mode .tm-documents-card .tm-doc-row-copy,.tm-light-mode .tm-documents-card .tm-doc-row-copy strong,.tm-light-mode .tm-documents-card .tm-doc-next-meta,.tm-light-mode .tm-documents-card .tm-doc-empty{color:#171a1e}
.tm-light-mode .tm-documents-card .tm-doc-next-label,.tm-light-mode .tm-documents-card .tm-documents-title p{color:#8a6820}
.tm-light-mode .tm-documents-card .tm-doc-row-actions button,.tm-light-mode .tm-documents-card .tm-doc-renew,.tm-light-mode .tm-documents-card .tm-documents-add{color:#252a31}
.tm-light-mode .tm-documents-card .tm-doc-row-actions button:hover{color:#9d6812}

/* High-contrast accessibility theme: stronger text, boundaries and focus states. */
.tm-high-contrast{--line:#aeb8c5;--line-light:#d4dce6;--muted:#e3e8ef;--subtle:#cbd3de;--surface:#090b0e;--surface-2:#141920;--surface-3:#202833;color:#fff}
.tm-high-contrast .tm-page-lead,.tm-high-contrast .tm-card-title p,.tm-high-contrast .tm-setting-section>p,.tm-high-contrast .tm-control-card>p,.tm-high-contrast .tm-disclaimer,.tm-high-contrast .tm-list-copy small,.tm-high-contrast .tm-documents-intro,.tm-high-contrast .tm-doc-row-copy small,.tm-high-contrast .tm-doc-next small,.tm-high-contrast .tm-feature-intro,.tm-high-contrast .tm-faq-list details p,.tm-high-contrast .tm-access-option small,.tm-high-contrast .tm-notice,.tm-high-contrast .tm-field{color:#f1f4f8}
.tm-high-contrast .tm-card,.tm-high-contrast .tm-form-card,.tm-high-contrast .tm-list-item,.tm-high-contrast .tm-cycle-choice,.tm-high-contrast .tm-toggle-choice,.tm-high-contrast .tm-nav-tools .tm-nav-link,.tm-high-contrast .tm-rate-link,.tm-high-contrast .tm-notice,.tm-high-contrast .tm-documents-card,.tm-high-contrast .tm-doc-next,.tm-high-contrast .tm-doc-row,.tm-high-contrast .tm-doc-form,.tm-high-contrast .tm-account-card,.tm-high-contrast .tm-bag-item,.tm-high-contrast .tm-vacation-cycle-card{border-color:#aeb8c5}
.tm-high-contrast .tm-field input,.tm-high-contrast .tm-field select,.tm-high-contrast .tm-doc-field input,.tm-high-contrast .tm-doc-field select,.tm-high-contrast .tm-report-form textarea{border:2px solid #aeb8c5;color:#fff}
.tm-high-contrast button:focus-visible,.tm-high-contrast a:focus-visible,.tm-high-contrast input:focus-visible,.tm-high-contrast select:focus-visible,.tm-high-contrast summary:focus-visible{outline:3px solid #ffd54a!important;outline-offset:3px}
.tm-high-contrast .tm-nav-link,.tm-high-contrast .tm-button,.tm-high-contrast .tm-cycle-choice,.tm-high-contrast .tm-toggle-choice{font-weight:750}
.tm-high-contrast .tm-day.is-work,.tm-high-contrast .tm-year-day.is-work{border:2px solid #ffd54a;color:#fff}
.tm-high-contrast .tm-day.is-night,.tm-high-contrast .tm-day.is-morning,.tm-high-contrast .tm-day.is-afternoon,.tm-high-contrast .tm-year-day.is-night,.tm-high-contrast .tm-year-day.is-morning,.tm-high-contrast .tm-year-day.is-afternoon{border:2px solid #c7b6ff;color:#fff}
.tm-high-contrast .tm-day.is-vacation,.tm-high-contrast .tm-year-day.is-vacation{border:2px solid #ff8aca;color:#fff}
.tm-high-contrast.tm-light-mode{--line:#515b68;--line-light:#35404c;--text:#080a0d;--muted:#20262e;--subtle:#303a46;--surface:#fff;--surface-2:#f0f2f5;--surface-3:#e2e6eb;background:#fff;color:#080a0d}
.tm-light-mode.tm-high-contrast .tm-page-lead,.tm-light-mode.tm-high-contrast .tm-card-title p,.tm-light-mode.tm-high-contrast .tm-setting-section>p,.tm-light-mode.tm-high-contrast .tm-control-card>p,.tm-light-mode.tm-high-contrast .tm-disclaimer,.tm-light-mode.tm-high-contrast .tm-list-copy small,.tm-light-mode.tm-high-contrast .tm-documents-intro,.tm-light-mode.tm-high-contrast .tm-doc-row-copy small,.tm-light-mode.tm-high-contrast .tm-doc-next small,.tm-light-mode.tm-high-contrast .tm-feature-intro,.tm-light-mode.tm-high-contrast .tm-faq-list details p,.tm-light-mode.tm-high-contrast .tm-access-option small,.tm-light-mode.tm-high-contrast .tm-notice,.tm-light-mode.tm-high-contrast .tm-field{color:#171c22}
.tm-light-mode.tm-high-contrast .tm-field input,.tm-light-mode.tm-high-contrast .tm-field select,.tm-light-mode.tm-high-contrast .tm-doc-field input,.tm-light-mode.tm-high-contrast .tm-doc-field select,.tm-light-mode.tm-high-contrast .tm-report-form textarea{border:2px solid #515b68;color:#080a0d;background:#fff}
.tm-light-mode.tm-high-contrast button:focus-visible,.tm-light-mode.tm-high-contrast a:focus-visible,.tm-light-mode.tm-high-contrast input:focus-visible,.tm-light-mode.tm-high-contrast select:focus-visible,.tm-light-mode.tm-high-contrast summary:focus-visible{outline-color:#805b00!important}
.tm-light-mode.tm-high-contrast .tm-day.is-work,.tm-light-mode.tm-high-contrast .tm-year-day.is-work{border:2px solid #805b00;color:#302500}
.tm-light-mode.tm-high-contrast .tm-day.is-night,.tm-light-mode.tm-high-contrast .tm-day.is-morning,.tm-light-mode.tm-high-contrast .tm-day.is-afternoon,.tm-light-mode.tm-high-contrast .tm-year-day.is-night,.tm-light-mode.tm-high-contrast .tm-year-day.is-morning,.tm-light-mode.tm-high-contrast .tm-year-day.is-afternoon{border:2px solid #543d94;color:#302653}
.tm-light-mode.tm-high-contrast .tm-day.is-vacation,.tm-light-mode.tm-high-contrast .tm-year-day.is-vacation{border:2px solid #a52c71;color:#572544}

/* Dark, readable typography throughout Settings in light mode. */
.tm-light-mode .tm-settings-layout,.tm-light-mode .tm-settings-layout h1,.tm-light-mode .tm-settings-layout h2,.tm-light-mode .tm-settings-layout h3,.tm-light-mode .tm-settings-layout p,.tm-light-mode .tm-settings-layout label,.tm-light-mode .tm-settings-layout span,.tm-light-mode .tm-settings-layout strong,.tm-light-mode .tm-settings-layout small{color:#111418}
.tm-light-mode .tm-settings-layout .tm-eyebrow{color:#765800}
.tm-light-mode .tm-settings-layout .tm-setting-section>p,.tm-light-mode .tm-settings-layout .tm-control-card>p,.tm-light-mode .tm-settings-layout .tm-notice{color:#303740}
.tm-light-mode .tm-settings-layout .tm-field input,.tm-light-mode .tm-settings-layout .tm-field select{color:#111418;background:#fff;border-color:#b9c1cb}
.tm-light-mode .tm-settings-layout .tm-cycle-choice,.tm-light-mode .tm-settings-layout .tm-toggle-choice,.tm-light-mode .tm-settings-layout .tm-button-secondary{color:#111418}
.tm-light-mode.tm-high-contrast .tm-settings-layout,.tm-light-mode.tm-high-contrast .tm-settings-layout h1,.tm-light-mode.tm-high-contrast .tm-settings-layout h2,.tm-light-mode.tm-high-contrast .tm-settings-layout h3,.tm-light-mode.tm-high-contrast .tm-settings-layout p,.tm-light-mode.tm-high-contrast .tm-settings-layout label,.tm-light-mode.tm-high-contrast .tm-settings-layout span,.tm-light-mode.tm-high-contrast .tm-settings-layout strong,.tm-light-mode.tm-high-contrast .tm-settings-layout small{color:#000}

/* Light surfaces for cycle and current-status selectors in Settings. */
.tm-light-mode .tm-settings-layout .tm-cycle-choice,.tm-light-mode .tm-settings-layout .tm-toggle-choice{border:1px solid #b9c1cb;background:#f1f3f6;color:#171a1e}
.tm-light-mode .tm-settings-layout .tm-cycle-choice:hover,.tm-light-mode .tm-settings-layout .tm-toggle-choice:hover{background:#e6eaf0;border-color:#7f8996}
.tm-light-mode .tm-settings-layout .tm-cycle-choice.is-selected,.tm-light-mode .tm-settings-layout .tm-toggle-choice.is-selected{border-color:#a97800;background:#fff0bf;color:#332500;box-shadow:inset 0 0 0 1px rgba(169,120,0,.18)}
.tm-light-mode.tm-high-contrast .tm-settings-layout .tm-cycle-choice,.tm-light-mode.tm-high-contrast .tm-settings-layout .tm-toggle-choice{border:2px solid #515b68;background:#fff;color:#080a0d}
.tm-light-mode.tm-high-contrast .tm-settings-layout .tm-cycle-choice.is-selected,.tm-light-mode.tm-high-contrast .tm-settings-layout .tm-toggle-choice.is-selected{border-color:#805b00;background:#ffe58c;color:#1c1605}

.tm-day[data-calendar-date],.tm-year-day[data-calendar-date]{cursor:pointer}.tm-day[data-calendar-date]:hover,.tm-year-day[data-calendar-date]:hover{filter:brightness(1.12)}.tm-day[data-calendar-date]:focus-visible,.tm-year-day[data-calendar-date]:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;z-index:3}
.tm-light-mode .tm-day[data-calendar-date]:hover,.tm-light-mode .tm-year-day[data-calendar-date]:hover{filter:brightness(.96)}

#event-form>.tm-field-wide{grid-column:1/-1;width:100%}#event-form>.tm-field-wide>.tm-button{display:flex;width:100%}

#event-form .tm-event-reminder{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--text);font-size:13px;line-height:1.4;overflow-wrap:anywhere}#event-form .tm-event-reminder .tm-check{width:18px;height:18px;min-width:18px;flex:none;margin:0;accent-color:var(--gold)}#event-form .tm-event-actions{display:grid;grid-column:1/-1;gap:9px;width:100%}#event-form .tm-event-actions>.tm-button{display:flex;width:100%;justify-content:center}#event-form .tm-event-cancel{border:1px solid var(--line-light);background:var(--surface-2);color:var(--text)}

@media(max-width:900px){.tm-main .tm-card-title h2,.tm-main .tm-card-title h3{font-size:clamp(15px,4.2vw,18px);line-height:1.25}.tm-main .tm-card-title p,.tm-main .tm-list-copy small,.tm-main .tm-list-meta small,.tm-main .tm-upcoming-copy small,.tm-main .tm-vacation-cycle-copy small,.tm-main .tm-doc-row-copy small,.tm-main .tm-doc-row-copy span,.tm-main .tm-bag-progress span,.tm-main .tm-doc-next-meta,.tm-main .tm-setting-section>p,.tm-main .tm-field{font-size:12px;line-height:1.45}.tm-main .tm-list-copy strong,.tm-main .tm-upcoming-copy strong,.tm-main .tm-doc-row-copy strong,.tm-main .tm-vacation-cycle-copy strong{font-size:14px;line-height:1.35}.tm-main .tm-empty{font-size:13px;line-height:1.5}.tm-main .tm-page-lead{font-size:14px;line-height:1.5}.tm-main .tm-eyebrow,.tm-main .tm-vacation-section-label{font-size:10px;line-height:1.35;letter-spacing:.12em}.tm-main .tm-day-number{font-size:clamp(12px,3.3vw,16px)}.tm-main .tm-day-type{font-size:clamp(6px,1.8vw,9px);line-height:1.2}.tm-main .tm-day .tm-holiday-tag{font-size:clamp(5px,1.5vw,8px)}.tm-main .tm-week-day span,.tm-main .tm-stat-label,.tm-main .tm-stat-detail,.tm-main .tm-cal-today{font-size:10px;line-height:1.35}.tm-main .tm-button{font-size:13px;line-height:1.25}.tm-main .tm-field input,.tm-main .tm-field select{font-size:14px}.tm-main .tm-event-actions>.tm-button{min-height:44px}.tm-main .tm-bag-item .tm-list-copy strong{font-size:13px}.tm-main .tm-doc-next-label{font-size:10px}.tm-main .tm-calendar-settings label{font-size:12px;line-height:1.4}}
@media(max-width:380px){.tm-main .tm-card-title h2,.tm-main .tm-card-title h3{font-size:15px}.tm-main .tm-card-title p,.tm-main .tm-list-copy small,.tm-main .tm-list-meta small,.tm-main .tm-upcoming-copy small,.tm-main .tm-vacation-cycle-copy small,.tm-main .tm-doc-row-copy small,.tm-main .tm-doc-row-copy span,.tm-main .tm-bag-progress span,.tm-main .tm-doc-next-meta,.tm-main .tm-setting-section>p,.tm-main .tm-field{font-size:11px}.tm-main .tm-list-copy strong,.tm-main .tm-upcoming-copy strong,.tm-main .tm-doc-row-copy strong,.tm-main .tm-vacation-cycle-copy strong{font-size:13px}.tm-main .tm-button{font-size:12px}}

@media(max-width:900px){.tm-settings-layout .tm-account-card{gap:11px;min-height:76px;padding:12px 13px;border-radius:14px}.tm-settings-layout .tm-account-avatar{width:40px;height:40px;font-size:15px}.tm-settings-layout .tm-account-copy{gap:4px}.tm-settings-layout .tm-account-copy>span{font-size:10px;line-height:1.3;letter-spacing:.12em}.tm-settings-layout .tm-account-copy strong{font-size:16px;line-height:1.3}.tm-settings-layout .tm-account-copy small{font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.tm-settings-layout .tm-account-lock{width:28px;height:28px}.tm-settings-layout .tm-form-card{padding:15px}.tm-settings-layout .tm-setting-section{margin-top:17px;padding-top:15px}.tm-settings-layout .tm-setting-section h3{margin-bottom:6px;font-size:16px;line-height:1.3}.tm-settings-layout .tm-setting-section>p,.tm-settings-layout .tm-cycle-mode-label,.tm-settings-layout .tm-cycle-status-label,.tm-settings-layout .tm-cycle-day-label{font-size:13px;line-height:1.5}.tm-settings-layout .tm-setting-section>p{margin-bottom:13px}.tm-settings-layout .tm-field{gap:7px;font-size:13px;line-height:1.4}.tm-settings-layout .tm-field input,.tm-settings-layout .tm-field select{min-height:46px;font-size:15px}.tm-settings-layout .tm-cycle-buttons{gap:7px}.tm-settings-layout .tm-cycle-choice{min-height:40px;padding:7px 6px;font-size:12px;line-height:1.2}.tm-settings-layout .tm-toggle-row{gap:8px}.tm-settings-layout .tm-toggle-choice{min-height:44px;padding:8px 9px;font-size:12px;line-height:1.25;white-space:normal}.tm-settings-layout .tm-settings-mode .tm-toggle-choice{min-height:48px;font-size:11px}.tm-settings-layout .tm-setting-actions{margin-top:17px}.tm-settings-layout .tm-setting-actions .tm-button{min-height:46px;font-size:14px}.tm-settings-layout .tm-notice{font-size:12px;line-height:1.5}}
@media(max-width:380px){.tm-settings-layout .tm-account-card{gap:9px;padding:11px}.tm-settings-layout .tm-account-copy strong{font-size:14px}.tm-settings-layout .tm-account-copy small{font-size:11px}.tm-settings-layout .tm-setting-section h3{font-size:15px}.tm-settings-layout .tm-setting-section>p,.tm-settings-layout .tm-cycle-mode-label,.tm-settings-layout .tm-cycle-status-label,.tm-settings-layout .tm-cycle-day-label{font-size:12px}.tm-settings-layout .tm-cycle-choice{font-size:11px}.tm-settings-layout .tm-settings-mode .tm-toggle-choice{padding:7px 5px;font-size:10px}.tm-settings-layout .tm-field input,.tm-settings-layout .tm-field select{font-size:14px}}

#tm-sidebar .tm-nav-link span:nth-child(2){text-transform:uppercase;letter-spacing:.045em}#tm-sidebar .tm-side-caption{text-transform:uppercase}#tm-sidebar .tm-nav-tools .tm-nav-link span:nth-child(2){text-transform:uppercase;letter-spacing:.035em}

.tm-install-dialog .tm-install-steps{margin:17px 0;padding:15px 17px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.tm-install-steps ol{display:grid;gap:12px;margin:0;padding-left:22px;color:var(--muted);font-size:13px;line-height:1.55}.tm-install-steps strong{color:var(--text)}.tm-install-dismiss{width:100%}#tm-sidebar .tm-install-link>svg{color:#e1b94d}
@media(max-width:900px){.tm-install-dialog{width:min(100%,440px)}.tm-install-steps{padding:14px}.tm-install-steps ol{gap:13px;font-size:14px}}
.tm-light-mode .tm-install-dialog .tm-install-steps{background:#f4f6f8;border-color:#d0d6de}.tm-light-mode .tm-install-steps ol,.tm-light-mode .tm-install-steps strong{color:#252a31}

/* Reading mode: calm surfaces and readable text, while keeping all controls available. */
.tm-reading-mode .tm-main .tm-card,.tm-reading-mode .tm-main .tm-stat-card,.tm-reading-mode .tm-main .tm-week-card,.tm-reading-mode .tm-main .tm-quick-card,.tm-reading-mode .tm-main .tm-list-item,.tm-reading-mode .tm-main .tm-control-card,.tm-reading-mode .tm-main .tm-calendar-settings,.tm-reading-mode .tm-main .tm-documents-card{background:var(--surface);box-shadow:none}.tm-reading-mode .tm-main .tm-status-card{background:var(--surface);border-color:var(--line-light)}.tm-reading-mode .tm-status-card:after{opacity:.18}.tm-reading-mode .tm-main :is(.tm-setting-section,.tm-list-item,.tm-bag-item,.tm-vacation-cycle-card){border-color:var(--line-light)}.tm-reading-mode .tm-main :focus-visible{outline:3px solid var(--gold);outline-offset:3px}.tm-reading-mode.tm-light-mode .tm-main .tm-status-card{background:#fff}

/* Low-stimulation reading palette: softer dark and warm-light themes. */
body.tm-reading-mode{--bg:#191917;--surface:#22221f;--surface-2:#2a2a26;--surface-3:#32312c;--line:#3b3a34;--line-light:#514f45;--text:#dfddd5;--muted:#b9b6ac;--subtle:#969389;--gold:#c4a866;--gold-soft:#b7a477;--gold-wash:rgba(196,168,102,.1);--violet:#a89cba;--pink:#b88ca1;--red:#b97878;--green:#8eaa91;background:var(--bg);color:var(--text)}body.tm-reading-mode .tm-sidebar{background:#1d1d1a;border-color:#34332e}body.tm-reading-mode .tm-topbar,body.tm-reading-mode .tm-mobile-nav{background:rgba(25,25,23,.97);border-color:#393831}body.tm-reading-mode .tm-main .tm-card,body.tm-reading-mode .tm-main .tm-stat-card,body.tm-reading-mode .tm-main .tm-week-card,body.tm-reading-mode .tm-main .tm-quick-card,body.tm-reading-mode .tm-main .tm-list-item,body.tm-reading-mode .tm-main .tm-control-card,body.tm-reading-mode .tm-main .tm-calendar-settings,body.tm-reading-mode .tm-main .tm-documents-card{background:var(--surface);border-color:var(--line);box-shadow:none}body.tm-reading-mode .tm-main .tm-status-card{background:var(--surface)}body.tm-reading-mode .tm-day.is-work,body.tm-reading-mode .tm-year-day.is-work{background:rgba(177,148,84,.2);color:#d9ceaf}body.tm-reading-mode .tm-day.is-night,body.tm-reading-mode .tm-year-day.is-night,body.tm-reading-mode .tm-day.is-morning,body.tm-reading-mode .tm-year-day.is-morning{background:rgba(142,130,164,.2);color:#d0c9dc}body.tm-reading-mode .tm-day.is-afternoon,body.tm-reading-mode .tm-year-day.is-afternoon{background:rgba(117,132,165,.2);color:#cbd0dd}body.tm-reading-mode .tm-day.is-vacation,body.tm-reading-mode .tm-year-day.is-vacation{background:rgba(163,112,139,.2);color:#dbc7d0}body.tm-reading-mode .tm-holiday-tag{background:#a95c60;color:#f4e8e5}body.tm-reading-mode .tm-nav-link.is-active{border-color:rgba(196,168,102,.2);background:rgba(196,168,102,.09);color:#d0bb83}body.tm-reading-mode .tm-calendar-gear,body.tm-reading-mode .tm-cycle-choice.is-selected,body.tm-reading-mode .tm-toggle-choice.is-selected{border-color:rgba(196,168,102,.45);background:rgba(196,168,102,.12);color:#ddcc9e}body.tm-reading-mode.tm-light-mode{--bg:#efede7;--surface:#f6f4ee;--surface-2:#ebe8df;--surface-3:#e2ded3;--line:#d3cfc3;--line-light:#bdb8aa;--text:#393832;--muted:#67645c;--subtle:#77736a;--gold:#927c4c;--gold-soft:#8e7b54;--gold-wash:rgba(146,124,76,.1);--violet:#786c91;--pink:#9a687e;--red:#9e555a;--green:#58795d;background:var(--bg);color:var(--text)}body.tm-reading-mode.tm-light-mode .tm-sidebar,body.tm-reading-mode.tm-light-mode .tm-topbar,body.tm-reading-mode.tm-light-mode .tm-mobile-nav{background:#efede7;border-color:#d3cfc3}body.tm-reading-mode.tm-light-mode .tm-main .tm-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-stat-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-week-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-quick-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-list-item,body.tm-reading-mode.tm-light-mode .tm-main .tm-control-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-calendar-settings,body.tm-reading-mode.tm-light-mode .tm-main .tm-documents-card,body.tm-reading-mode.tm-light-mode .tm-main .tm-status-card{background:var(--surface);border-color:var(--line)}body.tm-reading-mode.tm-light-mode .tm-day.is-work,body.tm-reading-mode.tm-light-mode .tm-year-day.is-work{background:rgba(177,148,84,.18);color:#51462d}body.tm-reading-mode.tm-light-mode .tm-day.is-night,body.tm-reading-mode.tm-light-mode .tm-year-day.is-night,body.tm-reading-mode.tm-light-mode .tm-day.is-morning,body.tm-reading-mode.tm-light-mode .tm-year-day.is-morning{background:rgba(142,130,164,.16);color:#494256}body.tm-reading-mode.tm-light-mode .tm-day.is-afternoon,body.tm-reading-mode.tm-light-mode .tm-year-day.is-afternoon{background:rgba(117,132,165,.16);color:#424b5e}body.tm-reading-mode.tm-light-mode .tm-day.is-vacation,body.tm-reading-mode.tm-light-mode .tm-year-day.is-vacation{background:rgba(163,112,139,.15);color:#573a48}body.tm-reading-mode.tm-light-mode .tm-holiday-tag{background:#a95c60;color:#fff}

body.tm-light-mode .tm-mobile-nav button,body.tm-light-mode .tm-mobile-nav button.is-active{color:#171a1e}body.tm-light-mode .tm-mobile-nav button svg{color:#6d5b2d}

.tm-holiday-summary-toggle{display:flex;width:100%;min-height:42px;align-items:center;justify-content:center;margin-top:8px;padding:9px 12px;border:1px solid rgba(198,164,86,.38);border-radius:11px;background:rgba(198,164,86,.08);color:#d7bd7c;font:600 12px var(--body);cursor:pointer;transition:background .18s,border-color .18s}.tm-holiday-summary-toggle:hover{background:rgba(198,164,86,.15);border-color:#a88b4d}.tm-holiday-summary{display:grid;gap:10px;width:100%;margin-top:4px}.tm-holiday-summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-direction:row-reverse}.tm-holiday-year-nav{display:flex;align-items:center;justify-content:center;gap:13px}.tm-holiday-summary-head strong{font:600 15px var(--display);font-variant-numeric:tabular-nums}.tm-holiday-summary-head button{display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:20px;line-height:1;cursor:pointer}.tm-holiday-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px}.tm-holiday-column{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.tm-holiday-column h4{display:flex;min-height:39px;align-items:center;justify-content:space-between;gap:4px;margin:0;padding:8px;border-bottom:1px solid var(--line);font:650 11px/1.25 var(--display)}.tm-holiday-column h4 span{display:grid;min-width:19px;height:19px;place-items:center;border-radius:99px;background:rgba(255,255,255,.07);font:600 10px var(--body)}.tm-holiday-column ul{display:grid;max-height:300px;gap:5px;overflow:auto;margin:0;padding:7px;list-style:none;overscroll-behavior:contain}.tm-holiday-column li{display:grid;min-width:0;gap:3px;padding:7px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:10px;line-height:1.35}.tm-holiday-column li time{color:var(--text);font-size:10px;font-weight:650}.tm-holiday-column li>span{overflow-wrap:anywhere}.tm-holiday-column li.is-pending{border-color:rgba(198,164,86,.45);background:rgba(198,164,86,.1);color:var(--text)}.tm-holiday-column li.is-pending time{color:#e5c979}.tm-holiday-column li>b{color:#e5c979;font-size:8px;letter-spacing:.06em;line-height:1.3}.tm-holiday-empty{min-height:60px;margin:0;padding:10px 8px;color:var(--muted);font-size:10px;line-height:1.4}.tm-holiday-column.is-rest h4{color:#b7b2a5}.tm-home-holidays .tm-region-value{display:block;margin:0 0 6px;font-size:14px}.tm-home-holidays .tm-disclaimer{margin:0 0 10px}.tm-mobile-holiday .tm-holiday-summary{margin-top:7px}.tm-light-mode .tm-holiday-summary-toggle{border-color:#c5b27e;background:#f5f0df;color:#4b4024}.tm-light-mode .tm-holiday-column{background:var(--surface-2);border-color:var(--line)}.tm-light-mode .tm-holiday-column h4,.tm-light-mode .tm-holiday-column li time{color:var(--text)}.tm-light-mode .tm-holiday-column li.is-pending{background:#f3e8c5;border-color:#c6aa61}.tm-light-mode .tm-holiday-column li.is-pending time,.tm-light-mode .tm-holiday-column li>b{color:#725719}
@media(max-width:900px){.tm-holiday-summary{gap:8px}.tm-holiday-columns{gap:6px}.tm-holiday-column h4{min-height:36px;padding:6px;font-size:10px}.tm-holiday-column ul{max-height:230px;padding:5px}.tm-holiday-column li{gap:3px;padding:6px;font-size:10px}.tm-holiday-column li time{font-size:10px}.tm-holiday-empty{padding:8px 6px;font-size:9px}.tm-holiday-summary-toggle{min-height:40px;font-size:12px}}

.tm-holiday-column ul{max-height:none;overflow:visible;overscroll-behavior:auto}.tm-holiday-column{overflow:visible}

.tm-holiday-summary-head .tm-holiday-current{width:auto;min-width:82px;height:32px;padding:0 11px;border-color:rgba(198,164,86,.45);background:rgba(198,164,86,.1);color:#d7bd7c;font:600 10px var(--body);white-space:nowrap}.tm-light-mode .tm-holiday-summary-head .tm-holiday-current{background:#f5f0df;color:#4b4024;border-color:#c5b27e}

.tm-calendar-year-select{max-width:clamp(92px,14vw,150px);min-height:42px;padding:0 32px 0 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--text);font:600 clamp(17px,2.5vw,25px) var(--display);text-align:center;cursor:pointer}.tm-calendar-year-select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media(max-width:520px){.tm-calendar-year-select{min-height:38px;max-width:98px;padding:0 25px 0 8px;font-size:17px}}

.tm-calendar-date-actions{display:flex;flex:none;align-items:center}.tm-calendar-screen .tm-calendar-date-actions .tm-cal-today{min-width:68px}@media(max-width:520px){.tm-calendar-screen .tm-calendar-date-actions .tm-cal-today{min-width:50px;padding-inline:7px;font-size:11px}}@media(max-width:360px){.tm-calendar-screen .tm-calendar-date-actions .tm-cal-today{min-width:44px;padding-inline:5px;font-size:10px}}

.tm-calendar-screen>.tm-cal-toolbar{min-width:0}.tm-calendar-screen .tm-calendar-date-actions{flex:none}.tm-calendar-screen .tm-cal-month{min-width:0;flex:1;justify-content:space-between;gap:clamp(5px,1vw,14px)}.tm-calendar-screen .tm-cal-month h2{flex:1;text-align:center}.tm-calendar-screen .tm-calendar-year-select{flex:1;max-width:none}.tm-calendar-screen .tm-calendar-grid{touch-action:pan-y}

.tm-calendar-grid.tm-swipe-next{animation:tm-calendar-swipe-next .32s cubic-bezier(.22,.72,.24,1) both}.tm-calendar-grid.tm-swipe-prev{animation:tm-calendar-swipe-prev .32s cubic-bezier(.22,.72,.24,1) both}@keyframes tm-calendar-swipe-next{from{opacity:.55;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}@keyframes tm-calendar-swipe-prev{from{opacity:.55;transform:translateX(-24px)}to{opacity:1;transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.tm-calendar-grid.tm-swipe-next,.tm-calendar-grid.tm-swipe-prev{animation:none}}

.tm-calendar-screen .tm-cal-month{position:relative}.tm-calendar-screen .tm-month-menu{display:grid;flex:none;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--gold);cursor:pointer}.tm-calendar-screen .tm-month-menu svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tm-calendar-screen .tm-month-menu[aria-expanded="true"]{border-color:rgba(198,164,86,.65);background:rgba(198,164,86,.12)}.tm-mini-calendar{position:absolute;top:calc(100% + 10px);right:0;z-index:70;width:min(292px,calc(100vw - 36px));padding:13px;border:1px solid var(--line-light);border-radius:16px;background:var(--surface);box-shadow:0 18px 48px rgba(0,0,0,.5);animation:tm-mini-calendar-in .16s ease-out both}.tm-mini-calendar header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.tm-mini-calendar header strong{font:600 14px var(--display);text-transform:capitalize}.tm-mini-calendar header button{display:grid;width:32px;height:32px;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);cursor:pointer}.tm-mini-calendar header svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tm-mini-weekdays,.tm-mini-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.tm-mini-weekdays{margin-bottom:5px}.tm-mini-weekdays span{display:grid;height:25px;place-items:center;color:var(--muted);font-size:10px;font-weight:650}.tm-mini-day{display:grid;min-width:0;height:32px;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font-size:11px;cursor:pointer}.tm-mini-day:hover{border-color:rgba(198,164,86,.6);background:rgba(198,164,86,.12)}.tm-mini-day.is-empty{pointer-events:none}.tm-mini-day.is-work{background:rgba(245,180,0,.12)}.tm-mini-day.is-night,.tm-mini-day.is-morning{background:rgba(169,144,255,.14)}.tm-mini-day.is-afternoon{background:rgba(113,137,229,.14)}.tm-mini-day.is-vacation{background:rgba(217,81,164,.14)}.tm-mini-day.has-holiday{box-shadow:inset 0 -2px #ed5155}.tm-mini-day.is-selected{border-color:#e5b523;background:rgba(245,180,0,.23);font-weight:750}.tm-light-mode .tm-mini-calendar{background:#fff;color:#20252b;box-shadow:0 18px 48px rgba(26,32,40,.2)}.tm-light-mode .tm-mini-calendar header button{background:#f2f4f6;color:#20252b}.tm-light-mode .tm-mini-day{color:#20252b}.tm-light-mode .tm-mini-day.is-selected{background:#fff0bf;border-color:#a97800}@keyframes tm-mini-calendar-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:420px){.tm-mini-calendar{right:-5px;width:min(280px,calc(100vw - 28px));padding:10px}.tm-mini-day{height:30px}}

.tm-calendar-grid .tm-day.is-picked{outline:2px solid var(--gold);outline-offset:-2px}

.tm-calendar-screen>.tm-cal-toolbar{width:100%;gap:9px}.tm-calendar-screen>.tm-cal-toolbar>.tm-calendar-date-actions{width:auto}.tm-calendar-screen>.tm-cal-toolbar>.tm-cal-month{width:0;flex:1}.tm-mini-hint{margin:0 0 9px;color:var(--gold-soft);font:700 9px var(--body);letter-spacing:.13em}.tm-light-mode .tm-mini-hint{color:#765800}

.tm-mini-calendar header .tm-mini-year-select{width:76px;min-width:68px;height:32px;padding:0 18px 0 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font:650 12px var(--display);text-align:center;cursor:pointer}.tm-light-mode .tm-mini-calendar header .tm-mini-year-select{background:#f2f4f6;color:#20252b;border-color:#d0d6de}

.tm-mini-calendar{width:min(680px,calc(100vw - 36px));max-height:min(78dvh,760px);overflow:auto;overscroll-behavior:contain}.tm-mini-calendar header{position:sticky;top:0;z-index:2;padding-bottom:8px;background:var(--surface)}.tm-mini-calendar header .tm-mini-year-select{width:100px;min-width:82px;height:34px;padding:0 23px 0 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font:650 14px var(--display);text-align:center;cursor:pointer}.tm-mini-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tm-mini-month{min-width:0;padding:8px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.tm-mini-month h4{margin:0 0 5px;color:var(--text);font:650 11px var(--display);text-align:center;text-transform:capitalize}.tm-mini-month .tm-mini-weekdays,.tm-mini-month .tm-mini-days{gap:1px}.tm-mini-month .tm-mini-weekdays{margin-bottom:2px}.tm-mini-month .tm-mini-weekdays span{height:18px;font-size:8px}.tm-mini-month .tm-mini-day{height:23px;border-radius:5px;font-size:9px}.tm-mini-month .tm-mini-day.is-empty{height:23px}.tm-light-mode .tm-mini-calendar header{background:#fff}.tm-light-mode .tm-mini-month{background:#f7f8fa;border-color:#d4d9e0}.tm-light-mode .tm-mini-month h4{color:#20252b}@media(max-width:700px){.tm-mini-calendar{width:calc(100vw - 26px);max-height:calc(100dvh - 100px);right:0;padding:10px}.tm-mini-year-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tm-mini-month{padding:6px}.tm-mini-month h4{font-size:10px}.tm-mini-month .tm-mini-weekdays span{font-size:7px}.tm-mini-month .tm-mini-day,.tm-mini-month .tm-mini-day.is-empty{height:21px;font-size:8px}}@media(prefers-reduced-motion:reduce){.tm-mini-calendar{animation:none}}
.tm-demo-banner{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:10px 13px;border:1px solid rgba(245,180,0,.28);border-radius:11px;background:linear-gradient(90deg,rgba(245,180,0,.12),rgba(245,180,0,.035));color:#e8d49b;font-size:11px;line-height:1.4}.tm-demo-banner span{flex:1}.tm-demo-limit{margin:0 0 12px;color:#c5a94e;font-size:11px;font-weight:650}.tm-demo-limit-reached{padding:13px 15px;border:1px solid rgba(245,180,0,.3);border-radius:10px;background:rgba(245,180,0,.07);color:#ddc579;font-size:12px;line-height:1.5}.tm-demo-calendar-limit{margin:8px 0 0;color:#c4a548;font-size:10px;text-align:center}.tm-demo-account{border-color:rgba(245,180,0,.28)}.tm-documents-add:disabled{opacity:.42;cursor:not-allowed}.tm-light-mode .tm-demo-banner{border-color:#d9c67c;background:#fff9e6;color:#55503f}.tm-light-mode .tm-demo-limit-reached{background:#fff8df;color:#5c4d1a}.tm-high-contrast .tm-demo-banner,.tm-high-contrast .tm-demo-limit-reached{border:2px solid currentColor;color:inherit}
.tm-demo-banner{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:10px 13px;border:1px solid rgba(245,180,0,.28);border-radius:11px;background:linear-gradient(90deg,rgba(245,180,0,.12),rgba(245,180,0,.035));color:#e8d49b;font-size:11px;line-height:1.4}.tm-demo-banner span{flex:1}.tm-demo-limit{margin:0 0 12px;color:#c5a94e;font-size:11px;font-weight:650}.tm-demo-limit-reached{padding:13px 15px;border:1px solid rgba(245,180,0,.3);border-radius:10px;background:rgba(245,180,0,.07);color:#ddc579;font-size:12px;line-height:1.5}.tm-demo-calendar-limit{margin:8px 0 0;color:#c4a548;font-size:10px;text-align:center}.tm-demo-account{border-color:rgba(245,180,0,.28)}.tm-documents-add:disabled{opacity:.42;cursor:not-allowed}.tm-light-mode .tm-demo-banner{border-color:#d9c67c;background:#fff9e6;color:#55503f}.tm-light-mode .tm-demo-limit-reached{background:#fff8df;color:#5c4d1a}.tm-high-contrast .tm-demo-banner,.tm-high-contrast .tm-demo-limit-reached{border:2px solid currentColor;color:inherit}
.tm-app [hidden]{display:none!important}.tm-demo-banner{flex-wrap:wrap}.tm-demo-account .tm-account-copy{margin-left:0}.tm-documents-add:disabled svg{opacity:.6}

/* Desktop light theme: keep the full interface legible with dark text. */
body.tm-light-mode :where(h1,h2,h3,h4,p,span,strong,small,label,button,a,li,summary,dt,dd,th,td,legend,output,input,select,option,textarea){color:#171a1e}
body.tm-light-mode .tm-day-type.is-day-type{color:#8a6500}
body.tm-light-mode .tm-day-type.is-other-shift-type{color:#6854ad}
body.tm-light-mode .tm-holiday-tag{color:#fff}
body.tm-light-mode .tm-nav-link.is-active,body.tm-light-mode .tm-nav-tools .tm-nav-link.is-active{color:#765700}
body.tm-light-mode .tm-main .tm-status,body.tm-light-mode .tm-main .tm-status *,body.tm-light-mode .tm-main .tm-demo-limit-reached{color:#604b08}

/* Prevent shift labels from drawing a line across first-row calendar cells. */
.tm-calendar-grid .tm-day-number,.tm-calendar-grid .tm-day-type{position:relative;z-index:1;border:0;box-shadow:none;text-decoration:none}
.tm-calendar-grid .tm-day-type{line-height:1.25;white-space:normal}
.tm-calendar-grid .tm-day.is-work,.tm-calendar-grid .tm-day.is-night,.tm-calendar-grid .tm-day.is-morning,.tm-calendar-grid .tm-day.is-afternoon{background-clip:padding-box}

/* Bag items move behind unchecked items and settle smoothly after checking. */
.tm-bag-item{position:relative;transition:opacity .26s ease,background-color .26s ease,transform .32s cubic-bezier(.2,.75,.25,1),border-color .26s ease;animation:tm-bag-arrive .3s ease both}
.tm-bag-item.is-packed{opacity:.68;background-color:var(--surface);transform:scale(.985)}
.tm-bag-item.is-packed .tm-list-copy strong{text-decoration:line-through;text-decoration-color:rgba(23,26,30,.45)}
@keyframes tm-bag-arrive{from{opacity:.45;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* Keep payment actions grouped neatly at the end of the desktop sidebar. */
.tm-sidebar-footer-actions{grid-template-columns:1fr;gap:2px}
.tm-sidebar-footer-actions .tm-nav-link{min-height:38px;flex-direction:row;justify-content:flex-start;gap:11px;padding:7px 13px;border:0;border-radius:8px;background:transparent;text-align:left}
.tm-sidebar-footer-actions .tm-nav-link:hover{background:rgba(255,255,255,.045)}
.tm-sidebar-footer-actions .tm-nav-link span{font-size:12px}
.tm-sidebar-footer-actions .tm-nav-link>svg{width:17px;height:17px}
.tm-nav-tools .tm-nav-link,.tm-rate-link{border-color:transparent;border-radius:8px;background:transparent}
.tm-nav-tools .tm-nav-link:hover,.tm-rate-link:hover{background:rgba(255,255,255,.045)}
body.tm-light-mode .tm-sidebar-footer-actions .tm-nav-link{color:#171a1e}
@media(min-width:901px){
  body.tm-light-mode .tm-nav-tools .tm-nav-link,
  body.tm-light-mode .tm-rate-link,
  body.tm-light-mode .tm-sidebar-footer-actions .tm-nav-link{background:transparent;border-color:transparent;box-shadow:none}
  body.tm-light-mode .tm-nav-tools .tm-nav-link:hover,
  body.tm-light-mode .tm-rate-link:hover,
  body.tm-light-mode .tm-sidebar-footer-actions .tm-nav-link:hover{background:rgba(23,26,30,.045)}
}
@media(prefers-reduced-motion:reduce){.tm-bag-item{animation:none;transition:none}}

/* Responsive content hierarchy shared by Web and DEMO. */
.tm-main :is(h1,h2,h3,h4){max-width:100%;text-wrap:balance;overflow-wrap:anywhere;line-height:1.2}
.tm-main h1{font-size:clamp(1.45rem,2.25vw,2rem)}
.tm-main h2{font-size:clamp(1.12rem,1.7vw,1.45rem)}
.tm-main :is(.tm-page-lead,.tm-vacation-explainer,.tm-documents-intro,.tm-auth-intro,.tm-empty,.tm-doc-empty,.tm-list-copy small,.tm-field,.tm-doc-field){min-width:0;font-size:clamp(.82rem,1vw,.96rem);line-height:1.5;overflow-wrap:anywhere}
.tm-main :is(.tm-card,.tm-card-title,.tm-list-copy,.tm-doc-row-copy){min-width:0}
.tm-main :is(.tm-button,.tm-event-cancel,.tm-doc-renew,.tm-demo-limit-reached){max-width:100%;white-space:normal;line-height:1.3;text-wrap:balance;overflow-wrap:anywhere}
.tm-sidebar-footer-actions .tm-nav-link span{min-width:0;overflow-wrap:anywhere}
@media(max-width:560px){.tm-main h1{font-size:clamp(1.35rem,6vw,1.75rem)}.tm-main h2{font-size:clamp(1.08rem,4.8vw,1.3rem)}.tm-main :is(.tm-vacation-explainer,.tm-documents-intro,.tm-empty,.tm-doc-empty){font-size:.88rem;line-height:1.48}}
@media(max-width:900px){body[data-demo="true"]{padding-bottom:calc(72px + env(safe-area-inset-bottom))}body[data-demo="true"] .tm-mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:50;display:grid!important;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 5px max(7px,env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.1);background:rgba(13,15,19,.97);backdrop-filter:blur(16px)}}




.tm-sidebar-return{margin-top:auto}.tm-sidebar-return .tm-nav-link{text-decoration:none}.tm-sidebar-return-link{text-decoration:none}


.tm-demo-setup-dialog{width:min(620px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,820px);overflow:auto;padding:clamp(20px,4vw,34px);border:1px solid rgba(245,180,0,.42);border-radius:21px;background:radial-gradient(ellipse at 90% 0,rgba(245,180,0,.12),transparent 43%),#111419;color:#f4f4f2;box-shadow:0 28px 90px rgba(0,0,0,.64)}.tm-demo-setup-dialog::backdrop{background:rgba(3,5,8,.78);backdrop-filter:blur(7px)}.tm-demo-setup-content>.tm-eyebrow{margin:0 0 8px;color:#e5bd4e;font-size:10px;font-weight:800;letter-spacing:.15em}.tm-demo-setup-content>h2{margin:0;font:600 clamp(25px,5vw,34px)/1.15 var(--display);letter-spacing:-.035em}.tm-demo-setup-intro{margin:9px 0 20px;color:#aab1bb;font-size:13px;line-height:1.55}.tm-demo-setup-form>.tm-card{padding:17px}.tm-demo-setup-form .tm-setting-section{margin:0;padding:0;border:0}.tm-demo-setup-form .tm-setting-section h3{margin:0 0 14px;font-size:16px}.tm-demo-setup-form .tm-setting-actions{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:17px}.tm-demo-setup-form .tm-setting-actions .tm-button{min-height:45px}.tm-demo-setup-form [data-demo-setup-skip]{padding-inline:15px}@media(max-width:560px){.tm-demo-setup-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px 15px;border-radius:17px}.tm-demo-setup-intro{font-size:12px}.tm-demo-setup-form>.tm-card{padding:13px}.tm-demo-setup-form .tm-setting-actions{grid-template-columns:1fr}.tm-demo-setup-form [data-demo-setup-skip]{min-height:42px}}

.tm-calendar-settings-backdrop{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));background:rgba(4,6,9,.76);backdrop-filter:blur(8px);animation:tm-cal-settings-backdrop .2s ease both}.tm-calendar-settings-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;cursor:default}.tm-calendar-settings-backdrop .tm-calendar-settings{position:relative;z-index:1;display:grid!important;grid-column:auto;width:min(100%,440px);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border-color:rgba(245,180,0,.3);border-radius:19px;background:linear-gradient(145deg,#191c22,#111419);box-shadow:0 26px 80px rgba(0,0,0,.55);animation:tm-cal-settings-pop .24s cubic-bezier(.2,.75,.25,1) both}.tm-calendar-settings-backdrop .tm-calendar-settings h3{padding-right:38px;font-size:19px}.tm-calendar-settings-backdrop .tm-calendar-settings label{min-height:42px;font-size:14px}.tm-calendar-settings-backdrop .tm-calendar-settings input{width:19px;height:19px;flex:none}.tm-calendar-settings-close{position:absolute;top:13px;right:13px;display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:20px;line-height:1;cursor:pointer}.tm-light-mode .tm-calendar-settings-backdrop .tm-calendar-settings{background:linear-gradient(145deg,#fff,#f4f6f8);box-shadow:0 24px 65px rgba(25,32,42,.22)}.tm-light-mode .tm-calendar-settings-backdrop .tm-calendar-settings label{color:#303741}.tm-calendar-settings-close:hover{color:var(--gold);border-color:rgba(245,180,0,.45)}@keyframes tm-cal-settings-backdrop{from{opacity:0}to{opacity:1}}@keyframes tm-cal-settings-pop{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:560px){.tm-calendar-settings-backdrop{padding:16px 12px}.tm-calendar-settings-backdrop .tm-calendar-settings{padding:21px 17px}.tm-calendar-settings-backdrop .tm-calendar-settings label{font-size:13px}}@media(prefers-reduced-motion:reduce){.tm-calendar-settings-backdrop,.tm-calendar-settings-backdrop .tm-calendar-settings{animation:none}}

.tm-demo-banner{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;padding:14px}.tm-demo-banner strong{display:block;justify-self:start;padding:0;font-size:11px;line-height:1.2}.tm-demo-banner span{display:block;width:100%;line-height:1.55}.tm-demo-banner a{display:flex;width:100%;min-height:40px;align-items:center;justify-content:center;padding:9px 12px;border:1px solid rgba(245,180,0,.48);border-radius:9px;background:linear-gradient(135deg,#f5c246,#e6aa16);color:#211a07;font-size:12px;font-weight:750;text-align:center;text-decoration:none;white-space:normal}.tm-demo-banner a:hover{filter:brightness(1.06);text-decoration:none}.tm-light-mode .tm-demo-banner a{border-color:#cf9a13;background:linear-gradient(135deg,#f5c246,#e6aa16);color:#211a07}

.tm-demo-banner{gap:8px}.tm-demo-banner a{min-height:32px;padding:6px 10px;font-size:11px}


@media(max-width:700px){.tm-mini-calendar{position:fixed;top:50%;right:auto;left:50%;z-index:125;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:9px;transform:translate(-50%,-50%);transform-origin:center;animation:tm-mini-calendar-mobile-in .2s ease-out both}.tm-mini-calendar header{margin-bottom:6px}.tm-mini-calendar .tm-mini-hint{margin-bottom:6px}.tm-mini-year-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.tm-mini-month{padding:4px}.tm-mini-month h4{margin-bottom:2px;font-size:9px}.tm-mini-month .tm-mini-weekdays{margin-bottom:1px}.tm-mini-month .tm-mini-weekdays span{height:14px;font-size:7px}.tm-mini-month .tm-mini-day,.tm-mini-month .tm-mini-day.is-empty{height:16px;padding:0;font-size:7px}}@keyframes tm-mini-calendar-mobile-in{from{opacity:0;transform:translate(-50%,-48%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:700px) and (max-height:650px){.tm-mini-calendar{max-height:calc(100dvh - 12px);padding:6px}.tm-mini-year-grid{gap:3px}.tm-mini-month{padding:3px}.tm-mini-month .tm-mini-day,.tm-mini-month .tm-mini-day.is-empty{height:14px;font-size:6px}}@media(max-width:700px) and (prefers-reduced-motion:reduce){.tm-mini-calendar{animation:none!important;transform:translate(-50%,-50%)}}
.tm-mini-calendar header .tm-mini-back{display:flex;width:auto;min-width:64px;height:34px;flex:none;align-items:center;justify-content:center;gap:4px;padding:0 7px;font-size:11px;font-weight:650;white-space:nowrap}.tm-mini-calendar header .tm-mini-back svg{width:15px;height:15px;flex:none}
.tm-sidebar-policy-footer{display:block;width:max-content;max-width:100%;margin:-8px auto 0;color:#8b929c;font-size:10px;line-height:1.4;text-align:center;text-decoration:underline;text-underline-offset:2px;transition:color .18s ease}.tm-sidebar-policy-footer:hover{color:var(--gold)}body.tm-light-mode .tm-sidebar-policy-footer{color:#555d67}body.tm-light-mode .tm-sidebar-policy-footer:hover{color:#8a6500}
@media(max-width:900px){.tm-sidebar{padding-bottom:calc(88px + env(safe-area-inset-bottom))}}body[data-demo="true"] .tm-sidebar-return{margin:0}
.tm-demo-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;margin-left:3px;padding:4px 6px;border:1px solid rgba(245,180,0,.38);border-radius:6px;background:rgba(245,180,0,.1);color:#f1c44d;font-size:8px;font-weight:800;letter-spacing:.12em;line-height:1}.tm-mobile-brand .tm-demo-badge{padding:3px 5px;font-size:7px}
@media(min-width:901px){body[data-demo="true"].tm-light-mode :not(svg):not(svg *){color:#111!important}body[data-demo="true"].tm-light-mode :is(input,textarea)::placeholder{color:#333!important;opacity:1}}
@media(min-width:901px){body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked){border-color:#c02d82!important;background:linear-gradient(110deg,rgba(217,81,164,.24),rgba(217,81,164,.1) 58%),#fde7f3!important;color:#111!important}body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked) input{accent-color:#d951a4}}
@media(min-width:901px){body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected{border-color:#c02d82!important;background-color:#fde7f3!important;background-image:linear-gradient(110deg,rgba(217,81,164,.24),rgba(217,81,164,.1) 58%)!important;color:#111!important}body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy strong,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy small{color:#111!important}body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected input{accent-color:#d951a4}}
@media(min-width:901px){body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked){background:#171a20!important;border-color:rgba(217,81,164,.75)!important}body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy strong,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card.is-selected .tm-vacation-cycle-copy small,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked) .tm-vacation-cycle-copy,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked) .tm-vacation-cycle-copy strong,body[data-demo="true"].tm-light-mode .tm-vacation-cycle-card:has(input:checked) .tm-vacation-cycle-copy small{color:#fff!important}}

/* iPhone Safari safe areas: keep the fixed tabs clear of the home indicator and landscape cutouts. */
@media(max-width:900px), (max-height:520px) and (pointer:coarse){
  body{min-height:100vh;min-height:100dvh;padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  body .tm-topbar,body .tm-main{padding-inline-start:calc(clamp(9px,4vw,18px) + env(safe-area-inset-left));padding-inline-end:calc(clamp(9px,4vw,18px) + env(safe-area-inset-right))}
  body .tm-mobile-nav{position:fixed;inset-inline:0;bottom:0;z-index:100;display:grid!important;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px max(5px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));box-sizing:border-box}
  body .tm-mobile-nav button{min-width:0;min-height:48px;padding-inline:1px;font-size:clamp(7px,2vw,9px);line-height:1.1}
}

@media (min-width: 1101px) { .tm-main:has(.tm-settings-layout) { width: min(1680px, 100%); } .tm-settings-layout { grid-template-columns: minmax(0, 1fr); } .tm-settings-main { max-width: 1380px; } .tm-settings-layout .tm-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: end; } .tm-settings-layout .tm-form-grid .tm-field-wide { grid-column: auto; } .tm-settings-layout .tm-cycle-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tm-settings-layout .tm-settings-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tm-settings-layout .tm-cycle-status { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; } .tm-settings-layout .tm-cycle-day-label { max-width: 680px; } }
@media (min-width: 901px) {
  body[data-demo="true"] .tm-main:has(.tm-grid-home) { width: min(1740px, 100%); }
  body[data-demo="true"] .tm-grid-home { grid-template-columns: minmax(0, 1.75fr) minmax(340px, .9fr); gap: 22px; }
  body[data-demo="true"] .tm-grid-home > div:first-child { min-width: 0; }
  body[data-demo="true"] .tm-grid-home .tm-status-card { min-height: 205px; }
  body[data-demo="true"] .tm-grid-home .tm-side-stack { gap: 14px; }
  body[data-demo="true"] .tm-grid-home .tm-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-demo="true"] .tm-grid-home .tm-week-card, body[data-demo="true"] .tm-grid-home .tm-quick-grid { margin-top: 12px; }
}

/* Fine dark grid lines in the light calendar. */
body.tm-light-mode .tm-calendar-grid {
  border-color: rgba(0,0,0,.26);
}
body.tm-light-mode .tm-calendar-grid > :is(.tm-week-label,.tm-week-number,.tm-day) {
  border-right: 1px solid rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(0,0,0,.18);
}
body.tm-light-mode .tm-calendar-grid > .tm-week-label {
  border-bottom: 0 !important;
}
body.tm-light-mode .tm-calendar-grid:not(.has-week-numbers) > :is(.tm-week-label,.tm-day):nth-child(7n),
body.tm-light-mode .tm-calendar-grid.has-week-numbers > :is(.tm-week-number,.tm-day):nth-child(8n) {
  border-right: 0;
}
body.tm-light-mode .tm-calendar-grid:not(.has-week-numbers) > .tm-day:nth-child(n+8):nth-child(-n+14),
body.tm-light-mode .tm-calendar-grid.has-week-numbers > .tm-week-number:nth-child(9),
body.tm-light-mode .tm-calendar-grid.has-week-numbers > .tm-day:nth-child(n+10):nth-child(-n+16) {
  border-top: 1px solid rgba(0,0,0,.18) !important;
}
@media (min-width: 901px) and (max-width: 1200px) {
  body[data-demo="true"] .tm-grid-home { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); gap: 16px; }
  body[data-demo="true"] .tm-main:has(.tm-grid-home) { padding-inline: 28px; }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-calendar-grid { gap: 1px; padding: 1px; border: 0; background: rgba(255,255,255,.07); }
  body[data-demo="true"] .tm-calendar-grid > :is(.tm-week-label,.tm-week-number,.tm-day) { border: 0; }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-calendar-grid .tm-day.is-work { border-top-color: transparent; }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-calendar-grid .tm-day.is-work { background: rgba(245,180,0,.19); }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-calendar-grid > .tm-day.is-empty { background: #111419; }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-calendar-grid .tm-day.is-work { background-image: none !important; background-color: #393214 !important; background-clip: border-box !important; }
  body[data-demo="true"] .tm-calendar-grid .tm-day.is-work::before { content: none !important; display: none !important; }
}
.tm-bag-item { position: relative; z-index: 0; transition: transform .34s cubic-bezier(.2,.75,.25,1), opacity .28s ease, background-color .26s ease, border-color .26s ease; }
.tm-bag-item.is-moving-down { z-index: 2; transform: translateY(16px); }
.tm-bag-item.has-settled { animation: tm-bag-settle .32s cubic-bezier(.2,.75,.25,1) both; }
@keyframes tm-bag-settle { from { transform: translateY(-8px); } to { transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .tm-bag-item { transition: none !important; animation: none !important; } }

/* Strong desktop contrast mode: enforce readable surfaces, text, controls, and focus. */
body.tm-high-contrast { --bg:#000; --surface:#050505; --surface-2:#111; --surface-3:#1b1b1b; --line:#fff; --line-light:#fff; --text:#fff; --muted:#f2f2f2; --subtle:#e0e0e0; background:#000 !important; color:#fff !important; }
body.tm-high-contrast .tm-main, body.tm-high-contrast .tm-main :is(h1,h2,h3,h4,p,span,strong,small,label,li,summary,button,a,time,div) { color:#fff; }
body.tm-high-contrast :is(.tm-sidebar,.tm-topbar,.tm-card,.tm-form-card,.tm-list-item,.tm-stat-card,.tm-week-card,.tm-quick-card,.tm-control-card,.tm-calendar-card,.tm-document-card,.tm-documents-card,.tm-doc-row,.tm-doc-form,.tm-account-card,.tm-bag-item,.tm-vacation-cycle-card,.tm-notice,.tm-demo-banner,.tm-demo-limit-reached,.tm-settings-layout .tm-setting-section) { background-color:#000 !important; border-color:#fff !important; color:#fff !important; box-shadow:none !important; }
body.tm-high-contrast :is(.tm-page-lead,.tm-card-title p,.tm-setting-section>p,.tm-disclaimer,.tm-list-copy small,.tm-documents-intro,.tm-doc-row-copy small,.tm-feature-intro,.tm-access-option small,.tm-notice,.tm-field,.tm-demo-banner) { color:#fff !important; }
body.tm-high-contrast :is(input,select,textarea,.tm-field input,.tm-field select,.tm-doc-field input,.tm-doc-field select,.tm-report-form textarea) { background:#000 !important; border:2px solid #fff !important; color:#fff !important; }
body.tm-high-contrast select option { background:#000; color:#fff; }
body.tm-high-contrast :is(button,a,summary):focus-visible,body.tm-high-contrast :is(input,select,textarea):focus-visible { outline:3px solid #ff0 !important; outline-offset:3px; }
body.tm-high-contrast .tm-button-primary { background:#ff0 !important; border:2px solid #ff0 !important; color:#000 !important; }
body.tm-high-contrast :is(.tm-button-secondary,.tm-cycle-choice,.tm-toggle-choice,.tm-nav-link,.tm-icon-button,.tm-cal-today,.tm-calendar-gear) { background:#000 !important; border:2px solid #fff !important; color:#fff !important; }
body.tm-high-contrast .tm-nav-link.is-active,body.tm-high-contrast :is(.tm-cycle-choice,.tm-toggle-choice).is-selected { background:#ff0 !important; border-color:#ff0 !important; color:#000 !important; }
body.tm-high-contrast .tm-calendar-grid { background:#fff !important; }
body.tm-high-contrast .tm-calendar-grid > :is(.tm-week-label,.tm-week-number,.tm-day) { border-color:#fff !important; }
body.tm-high-contrast .tm-day { background:#000 !important; color:#fff !important; }
body.tm-high-contrast .tm-day.is-work,body.tm-high-contrast .tm-year-day.is-work { background:#ff0 !important; border:2px solid #ff0 !important; color:#000 !important; }
body.tm-high-contrast :is(.tm-day.is-night,.tm-day.is-morning,.tm-day.is-afternoon,.tm-year-day.is-night,.tm-year-day.is-morning,.tm-year-day.is-afternoon) { background:#24204a !important; border:2px solid #d7c8ff !important; color:#fff !important; }
body.tm-high-contrast :is(.tm-day.is-vacation,.tm-year-day.is-vacation) { background:#4b1234 !important; border:2px solid #ff9cdb !important; color:#fff !important; }
body.tm-high-contrast.tm-light-mode { --bg:#000; --surface:#050505; --surface-2:#111; --surface-3:#1b1b1b; --line:#fff; --line-light:#fff; --text:#fff; --muted:#f2f2f2; --subtle:#e0e0e0; background:#000 !important; color:#fff !important; }
body.tm-high-contrast.tm-light-mode :is(.tm-sidebar,.tm-topbar,.tm-card,.tm-form-card,.tm-list-item,.tm-stat-card,.tm-week-card,.tm-quick-card,.tm-control-card,.tm-calendar-card,.tm-documents-card,.tm-doc-row,.tm-doc-form,.tm-account-card,.tm-bag-item,.tm-vacation-cycle-card,.tm-notice,.tm-demo-banner) { background:#000 !important; color:#fff !important; border-color:#fff !important; }
body.tm-high-contrast.tm-light-mode .tm-main :is(h1,h2,h3,h4,p,span,strong,small,label,li,summary,button,a,time,div) { color:#fff; }






/* Reading mode uses calm, low-glare surfaces throughout the DEMO while preserving shift colors. */
body[data-demo="true"].tm-reading-mode { --bg:#171816; --surface:#201f1b; --surface-2:#26251f; --surface-3:#302e27; --line:#3c3a32; --line-light:#514e43; --text:#e4e1d7; --muted:#c2bfb4; --subtle:#a8a496; background:#171816 !important; color:#e4e1d7 !important; }
body[data-demo="true"].tm-reading-mode .tm-sidebar,
body[data-demo="true"].tm-reading-mode .tm-topbar,
body[data-demo="true"].tm-reading-mode .tm-mobile-nav { background:#1c1b18 !important; border-color:#37352f !important; }
body[data-demo="true"].tm-reading-mode .tm-main :is(.tm-card,.tm-form-card,.tm-list-item,.tm-stat-card,.tm-week-card,.tm-quick-card,.tm-control-card,.tm-calendar-card,.tm-documents-card,.tm-doc-row,.tm-doc-form,.tm-account-card,.tm-bag-item,.tm-vacation-cycle-card,.tm-notice,.tm-demo-banner,.tm-demo-limit-reached,.tm-settings-layout .tm-setting-section,.tm-field input,.tm-field select,.tm-doc-field input,.tm-doc-field select,.tm-report-form textarea,.tm-cycle-choice,.tm-toggle-choice,.tm-button-secondary,.tm-calendar-gear,.tm-cal-today) { background-color:#24231e !important; border-color:#49463c !important; box-shadow:none !important; }
body[data-demo="true"].tm-reading-mode .tm-main :is(.tm-page-lead,.tm-card-title p,.tm-setting-section>p,.tm-disclaimer,.tm-list-copy small,.tm-upcoming-copy small,.tm-documents-intro,.tm-doc-row-copy small,.tm-feature-intro,.tm-access-option small,.tm-notice,.tm-field,.tm-demo-banner,.tm-empty,.tm-week-label,.tm-week-number) { color:#ccc9be !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid { background:#3b3931 !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-week-label,
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-week-number,
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day:not(.is-work):not(.is-night):not(.is-morning):not(.is-afternoon):not(.is-vacation) { background:#24231e !important; border-color:#49463c !important; color:#e4e1d7 !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day.is-work,
body[data-demo="true"].tm-reading-mode .tm-day.is-work { background:rgba(177,148,84,.28) !important; border-color:rgba(211,180,105,.42) !important; color:#e2d3ad !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day.is-night,
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day.is-morning,
body[data-demo="true"].tm-reading-mode .tm-day.is-night,
body[data-demo="true"].tm-reading-mode .tm-day.is-morning { background:rgba(142,130,164,.28) !important; border-color:rgba(177,163,202,.4) !important; color:#d0c9dc !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day.is-afternoon,
body[data-demo="true"].tm-reading-mode .tm-day.is-afternoon { background:rgba(117,132,165,.28) !important; border-color:rgba(150,165,197,.4) !important; color:#cbd0dd !important; }
body[data-demo="true"].tm-reading-mode .tm-calendar-grid > .tm-day.is-vacation,
body[data-demo="true"].tm-reading-mode .tm-day.is-vacation { background:rgba(163,112,139,.28) !important; border-color:rgba(194,144,169,.4) !important; color:#dbc7d0 !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode { --bg:#e8e6df; --surface:#f0eee8; --surface-2:#e9e7df; --surface-3:#dfddd4; --line:#c9c6bb; --line-light:#b7b3a6; --text:#35352f; --muted:#5e5d55; --subtle:#747268; background:#e8e6df !important; color:#35352f !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-sidebar,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-topbar,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-mobile-nav { background:#e8e6df !important; border-color:#c9c6bb !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-main :is(.tm-card,.tm-form-card,.tm-list-item,.tm-stat-card,.tm-week-card,.tm-quick-card,.tm-control-card,.tm-calendar-card,.tm-documents-card,.tm-doc-row,.tm-doc-form,.tm-account-card,.tm-bag-item,.tm-vacation-cycle-card,.tm-notice,.tm-demo-banner,.tm-demo-limit-reached,.tm-settings-layout .tm-setting-section,.tm-field input,.tm-field select,.tm-doc-field input,.tm-doc-field select,.tm-report-form textarea,.tm-cycle-choice,.tm-toggle-choice,.tm-button-secondary,.tm-calendar-gear,.tm-cal-today) { background-color:#f0eee8 !important; border-color:#c9c6bb !important; box-shadow:none !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-main :is(.tm-page-lead,.tm-card-title p,.tm-setting-section>p,.tm-disclaimer,.tm-list-copy small,.tm-upcoming-copy small,.tm-documents-intro,.tm-doc-row-copy small,.tm-feature-intro,.tm-access-option small,.tm-notice,.tm-field,.tm-demo-banner,.tm-empty,.tm-week-label,.tm-week-number) { color:#4c4b44 !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid { background:#c9c6bb !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-week-label,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-week-number,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day:not(.is-work):not(.is-night):not(.is-morning):not(.is-afternoon):not(.is-vacation) { background:#f0eee8 !important; border-color:#c9c6bb !important; color:#35352f !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day.is-work,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-day.is-work { background:rgba(177,148,84,.2) !important; color:#51462d !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day.is-night,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day.is-morning,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-day.is-night,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-day.is-morning { background:rgba(142,130,164,.18) !important; color:#494256 !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day.is-afternoon,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-day.is-afternoon { background:rgba(117,132,165,.18) !important; color:#424b5e !important; }
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-calendar-grid > .tm-day.is-vacation,
body[data-demo="true"].tm-reading-mode.tm-light-mode .tm-day.is-vacation { background:rgba(163,112,139,.18) !important; color:#573a48 !important; }
@media (min-width: 901px) {
  body[data-demo="true"] .tm-grid-home { align-items: stretch; }
  body[data-demo="true"] .tm-grid-home > div:first-child,
  body[data-demo="true"] .tm-grid-home > .tm-side-stack { min-width: 0; align-self: stretch; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack { display: grid; grid-template-rows: auto auto; align-content: stretch; align-items: stretch; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-card { width: 100%; min-width: 0; min-height: 0; align-self: stretch; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-home-holidays { display: flex; flex-direction: column; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-home-holidays .tm-holiday-summary-toggle { width: 100%; margin-top: auto; }
}
@media (min-width: 901px) {
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-card:first-child { padding: 18px 20px 15px; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-card:first-child .tm-card-title { gap: 8px; margin-bottom: 10px; }
  body[data-demo="true"] .tm-grid-home > .tm-side-stack > .tm-card:first-child .tm-card-title p { margin-top: 3px; line-height: 1.35; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-list { display: grid; align-content: space-evenly; gap: 0; flex: 1; min-height: 0; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-item { min-height: 0; gap: 10px; padding: 8px 0; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-date { width: 36px; height: 37px; flex: 0 0 36px; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-copy { gap: 2px; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-copy strong { line-height: 1.2; }
  body[data-demo="true"] .tm-grid-home .tm-upcoming-copy small { line-height: 1.15; }
}
.tm-calendar-grid .tm-day-event-icon { position:absolute; right:8px; bottom:7px; z-index:2; display:grid; width:18px; height:18px; place-items:center; color:var(--gold); }
.tm-calendar-grid .tm-day-event-icon svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tm-calendar-grid .tm-day.has-events .tm-day-pernocta { right:29px; }
.tm-high-contrast .tm-day-event-icon { color:#000; }
.tm-light-mode .tm-day-event-icon { color:#765800; }
@media (max-width: 900px) {
  .tm-calendar-grid .tm-day-event-icon { right:3px; bottom:3px; width:14px; height:14px; }
  .tm-calendar-grid .tm-day-event-icon svg { width:12px; height:12px; }
  .tm-calendar-grid .tm-day.has-events .tm-day-pernocta { right:19px; }
}
@media (max-width: 520px) {
  .tm-calendar-grid .tm-day-event-icon { right:2px; bottom:2px; width:12px; height:12px; }
  .tm-calendar-grid .tm-day-event-icon svg { width:10px; height:10px; }
  .tm-calendar-grid .tm-day.has-events .tm-day-pernocta { right:15px; }
}
.tm-calendar-grid .tm-day-event-icon { width:22px; height:22px; }
.tm-calendar-grid .tm-day-event-icon svg { width:18px; height:18px; }
@media (max-width: 900px) {
  .tm-calendar-grid .tm-day-event-icon { width:18px; height:18px; }
  .tm-calendar-grid .tm-day-event-icon svg { width:15px; height:15px; }
  .tm-calendar-grid .tm-day.has-events .tm-day-pernocta { right:23px; }
}
@media (max-width: 520px) {
  .tm-calendar-grid .tm-day-event-icon { width:16px; height:16px; }
  .tm-calendar-grid .tm-day-event-icon svg { width:13px; height:13px; }
  .tm-calendar-grid .tm-day.has-events .tm-day-pernocta { right:19px; }
}
@media (min-width: 901px) {
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-work {
    background-image:none !important;
    background-color:#f5b400 !important;
    background-clip:border-box !important;
    border-top-color:transparent !important;
    color:#241d0a !important;
  }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-work::before { content:none !important; display:none !important; }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-work .tm-day-type {
    color:#382900 !important;
  }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-night,
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-morning,
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-afternoon {
    background-image:none !important;
    background-clip:border-box !important;
    border-top-color:transparent !important;
  }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day:is(.is-night,.is-morning,.is-afternoon)::before { content:none !important; display:none !important; }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-night { background-color:#e4def6 !important; }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-morning { background-color:#e4def6 !important; }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-afternoon { background-color:#e0e6fa !important; }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.is-empty {
    background-color:#e7e9ed !important;
  }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid > .tm-day.has-holiday > .tm-holiday-tag {
    color:#fff !important;
    background-color:#c92d36 !important;
  }
}

@media (max-width: 900px) {
  body[data-demo="true"] .tm-sidebar { position:fixed; }
  body[data-demo="true"] .tm-sidebar > .tm-brand {
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:6px 9px;
    padding:0 7px;
  }
  body[data-demo="true"] .tm-sidebar > .tm-brand .tm-brand-mark { width:31px; height:29px; }
  body[data-demo="true"] .tm-sidebar > .tm-brand > span { min-width:0; margin-right:72px; }
  body[data-demo="true"] .tm-sidebar > .tm-brand .tm-demo-badge {
    display:flex;
    width:100%;
    flex-basis:100%;
    min-height:30px;
    justify-content:center;
    margin:2px -7px 0;
    padding-inline:7px;
    font-size:0;
    letter-spacing:.08em;
  }
  body[data-demo="true"] .tm-sidebar > .tm-brand .tm-demo-badge::after {
    content:"Versión Demo";
    font-size:10px;
  }
  body[data-demo="true"] .tm-sidebar > .tm-theme-row {
    position:absolute;
    top:22px;
    right:10px;
    gap:7px;
    margin:0;
  }
  body[data-demo="true"] .tm-sidebar > .tm-theme-row svg { width:16px; height:16px; }
  body[data-demo="true"] .tm-sidebar > .tm-theme-row .tm-theme-switch { width:48px; height:30px; }
}

@media (max-width: 900px) {
  body[data-demo="true"].tm-light-mode .tm-mobile-nav button,
  body[data-demo="true"].tm-light-mode .tm-mobile-nav button.is-active,
  body[data-demo="true"].tm-light-mode .tm-mobile-nav button > span {
    color:#171a1e !important;
  }
  body[data-demo="true"].tm-light-mode .tm-mobile-nav button svg {
    color:#e5a900 !important;
    stroke:#e5a900 !important;
  }
  body[data-demo="true"].tm-light-mode .tm-mobile-nav {
    border-top:1px solid #171a1e !important;
    background:#fff !important;
  }
}

@media (max-width: 560px) {
  body[data-demo="true"] .tm-doc-form { grid-template-columns:minmax(0,1fr); }
  body[data-demo="true"] .tm-doc-form-actions { display:grid; grid-template-columns:1fr; }
  body[data-demo="true"] .tm-doc-form-actions .tm-button { min-height:44px; }
}

@media (max-width: 900px) {
  body[data-demo="true"]:not(.tm-light-mode) .tm-sidebar > .tm-theme-row .tm-theme-switch i {
    transform:translateX(15px);
  }
}

@media (max-width: 900px) {
  body[data-demo="true"] .tm-calendar-grid {
    gap:1px;
    padding:1px;
    border:0;
    background:#292e36;
  }
  body[data-demo="true"] .tm-calendar-grid > :is(.tm-week-label,.tm-week-number,.tm-day) {
    border:0 !important;
    box-shadow:none !important;
  }
  body[data-demo="true"].tm-light-mode .tm-calendar-grid {
    background:#d0d6de;
  }
}


/* Compact brand and inline theme control for the production app on mobile. */
@media (max-width: 900px) {
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand { max-width: calc(100% - 102px); gap: 7px; padding-inline: 4px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand .tm-brand-mark { width: 29px; height: 27px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand > span { min-width: 0; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand strong { font-size: 11px; letter-spacing: .09em; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand small { font-size: 9px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row { position: absolute; top: 17px; right: 11px; gap: 6px; margin: 0; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row svg { width: 16px; height: 16px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row .tm-theme-switch { width: 48px; height: 28px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row .tm-theme-switch i { width: 22px; height: 22px; transform: translateX(19px); }
  body:not([data-demo="true"]).tm-light-mode .tm-sidebar > .tm-theme-row .tm-theme-switch i { transform: translateX(0); }
}

/* Widen the production app sidebar while keeping the content column aligned. */
@media (min-width: 1101px) {
  body:not([data-demo="true"]) .tm-sidebar { width: 360px; }
  body:not([data-demo="true"]) .tm-main-column { margin-left: 360px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand { max-width: calc(100% - 132px); gap: 8px; padding-inline: 8px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row { position: absolute; top: 24px; right: 15px; gap: 12px; margin: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  body:not([data-demo="true"]) .tm-sidebar { width: 340px; }
  body:not([data-demo="true"]) .tm-main-column { margin-left: 340px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-brand { max-width: calc(100% - 132px); gap: 8px; padding-inline: 8px; }
  body:not([data-demo="true"]) .tm-sidebar > .tm-theme-row { position: absolute; top: 24px; right: 15px; gap: 12px; margin: 0; }
}

/* Keep the production desktop sidebar within the viewport without scrolling. */
@media (min-width: 901px) {
  body:not([data-demo="true"]) .tm-sidebar { padding-top: 16px; padding-bottom: 10px; }
  body:not([data-demo="true"]) .tm-side-caption { margin-top: 24px; margin-bottom: 7px; }
  body:not([data-demo="true"]) .tm-side-caption-bottom { margin-top: 16px; }
  body:not([data-demo="true"]) .tm-nav { gap: 1px; }
  body:not([data-demo="true"]) .tm-nav-link { min-height: 38px; gap: 10px; padding-inline: 11px; }
  body:not([data-demo="true"]) .tm-nav-link span:nth-child(2) { font-size: 12px; }
  body:not([data-demo="true"]) .tm-nav-link > svg { width: 17px; height: 17px; }
  body:not([data-demo="true"]) .tm-sidebar-bottom { gap: 8px; }
  body:not([data-demo="true"]) .tm-sidebar-footer-actions .tm-nav-link { min-height: 34px; }
  body:not([data-demo="true"]) .tm-profile { padding: 7px 8px; }
}

@media (min-width: 901px) and (max-height: 760px) {
  body:not([data-demo="true"]) .tm-sidebar { padding-top: 12px; padding-bottom: 7px; }
  body:not([data-demo="true"]) .tm-side-caption { margin-top: 17px; margin-bottom: 4px; }
  body:not([data-demo="true"]) .tm-side-caption-bottom { margin-top: 10px; }
  body:not([data-demo="true"]) .tm-nav-link { min-height: 34px; }
  body:not([data-demo="true"]) .tm-nav-link span:nth-child(2) { font-size: 11px; }
  body:not([data-demo="true"]) .tm-sidebar-bottom { gap: 5px; }
  body:not([data-demo="true"]) .tm-sidebar-footer-actions .tm-nav-link { min-height: 30px; }
  body:not([data-demo="true"]) .tm-sidebar-policy-footer { margin-top: -5px; font-size: 9px; }
}

/* Keep selected vacation periods readable in light mode. */
html body.tm-app.tm-light-mode .tm-vacation-cycle-card.is-selected,
html body.tm-app.tm-light-mode .tm-vacation-cycle-card:has(input:checked) {
  border-color: #b52d78 !important;
  background: #fde7f3 !important;
  color: #271522 !important;
}
html body.tm-app.tm-light-mode .tm-vacation-cycle-card:is(.is-selected,:has(input:checked)) .tm-vacation-cycle-copy,
html body.tm-app.tm-light-mode .tm-vacation-cycle-card:is(.is-selected,:has(input:checked)) .tm-vacation-cycle-copy strong,
html body.tm-app.tm-light-mode .tm-vacation-cycle-card:is(.is-selected,:has(input:checked)) .tm-vacation-cycle-copy small {
  color: #271522 !important;
}
html body.tm-app.tm-light-mode .tm-vacation-cycle-card:is(.is-selected,:has(input:checked)) .tm-vacation-cycle-icon {
  background: #f5c8df !important;
  color: #7b174c !important;
}

/* Bag rows remain comfortable to toggle while their reorder motion stays subtle. */
.tm-bag-item { cursor: pointer; }
.tm-bag-item.is-packed { opacity: .82; transform: none; }
.tm-bag-switch, .tm-bag-switch *, .tm-bag-item .tm-delete { cursor: pointer; }

/* Keep event count legible against the dark badge in light mode. */
body.tm-light-mode .tm-nav-count { color: #fff !important; }
body[data-demo="true"].tm-light-mode .tm-nav-count { color: #fff !important; }
.tm-mobile-nav-count { position:absolute; top:2px; left:calc(50% + 14px); display:grid; min-width:16px; height:16px; place-items:center; padding:0 4px; border-radius:99px; background:#313844; color:#fff; font-size:9px; font-weight:750; line-height:1; }
.tm-mobile-nav button { position:relative; }
.tm-mobile-nav button .tm-mobile-nav-count { position:absolute; top:0; right:calc(50% - 28px); z-index:2; display:grid; width:auto; min-width:16px; max-width:none; height:16px; overflow:visible; place-items:center; padding:0 4px; border-radius:99px; background:#313844; color:#fff; font-size:9px; font-weight:750; line-height:1; }
body.tm-light-mode .tm-mobile-nav-count { background:#343b46; color:#fff !important; }
.tm-grid-home .tm-notice { display: none !important; }

@media (min-width: 901px) {
  .tm-grid-home .tm-quick-card {
    display: grid;
    min-height: 68px;
    grid-template-columns: 18px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: initial;
    column-gap: 9px;
    row-gap: 4px;
    padding: 8px 13px;
  }
  .tm-grid-home .tm-quick-card > svg { grid-column: 1; grid-row: 1; }
  .tm-grid-home .tm-quick-card > strong { grid-column: 2; grid-row: 1; align-self: center; }
  .tm-grid-home .tm-quick-card > small { grid-column: 1 / -1; grid-row: 2; }
}

/* Keep light-mode shift cells a single, even tone across the first calendar row. */
body.tm-light-mode .tm-calendar-grid > .tm-day:is(.is-work,.is-night,.is-morning,.is-afternoon) {
  background: #f4f6f8 !important;
  box-shadow: none !important;
  border-top: 0 !important;
}
body.tm-light-mode .tm-calendar-grid > .tm-day.is-work { background: rgba(245,180,0,.24) !important; }
body.tm-light-mode .tm-calendar-grid > .tm-day.is-night,
body.tm-light-mode .tm-calendar-grid > .tm-day.is-morning { background: rgba(130,105,220,.22) !important; }
body.tm-light-mode .tm-calendar-grid > .tm-day.is-afternoon { background: rgba(92,117,214,.2) !important; }
body.tm-light-mode .tm-calendar-grid > .tm-day:is(.is-work,.is-night,.is-morning,.is-afternoon)::before,
body.tm-light-mode .tm-calendar-grid > .tm-day:is(.is-work,.is-night,.is-morning,.is-afternoon)::after {
  display: none !important;
  content: none !important;
}

/* Production desktop calendar: use opaque fills so no underlying band can show through. */
@media (min-width: 901px) {
  html body.tm-app.tm-light-mode .tm-calendar-grid > .tm-day.is-work {
    background: #e9dbad !important;
    background-image: none !important;
  }
  html body.tm-app.tm-light-mode .tm-calendar-grid > .tm-day.is-night,
  html body.tm-app.tm-light-mode .tm-calendar-grid > .tm-day.is-morning {
    background: #d4cfee !important;
    background-image: none !important;
  }
  html body.tm-app.tm-light-mode .tm-calendar-grid > .tm-day.is-afternoon {
    background: #d1d9f0 !important;
    background-image: none !important;
  }
}

/* Preserve the light theme when high contrast is enabled. */
body.tm-high-contrast.tm-light-mode {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f0f2f5;
  --surface-3: #e2e6eb;
  --line: #515b68;
  --line-light: #35404c;
  --text: #080a0d;
  --muted: #20262e;
  --subtle: #303a46;
  background: #fff !important;
  color: #080a0d !important;
}
body.tm-high-contrast.tm-light-mode .tm-sidebar,
body.tm-high-contrast.tm-light-mode .tm-topbar,
body.tm-high-contrast.tm-light-mode .tm-main .tm-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-stat-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-week-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-quick-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-control-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-calendar-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-documents-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-doc-row,
body.tm-high-contrast.tm-light-mode .tm-main .tm-doc-form,
body.tm-high-contrast.tm-light-mode .tm-main .tm-bag-item,
body.tm-high-contrast.tm-light-mode .tm-main .tm-vacation-cycle-card,
body.tm-high-contrast.tm-light-mode .tm-main .tm-settings-layout .tm-setting-section {
  background: #fff !important;
  border-color: #515b68 !important;
  color: #080a0d !important;
  box-shadow: none !important;
}
body.tm-high-contrast.tm-light-mode .tm-main :is(h1,h2,h3,h4,p,span,strong,small,label,li,summary,button,a,time,div) {
  color: #080a0d !important;
}
body.tm-high-contrast.tm-light-mode :is(input,select,textarea,.tm-field input,.tm-field select,.tm-doc-field input,.tm-doc-field select,.tm-report-form textarea) {
  background: #fff !important;
  border: 2px solid #35404c !important;
  color: #080a0d !important;
}
body.tm-high-contrast.tm-light-mode .tm-nav-link {
  background: #fff !important;
  border: 2px solid #515b68 !important;
  color: #080a0d !important;
}
body.tm-high-contrast.tm-light-mode .tm-nav-link.is-active,
body.tm-high-contrast.tm-light-mode :is(.tm-cycle-choice,.tm-toggle-choice).is-selected {
  background: #ffed9c !important;
  border-color: #805b00 !important;
  color: #080a0d !important;
}
body.tm-high-contrast.tm-light-mode .tm-sidebar :is(.tm-side-caption,.tm-sidebar-version,.tm-sidebar-policy-footer),
body.tm-high-contrast.tm-light-mode .tm-topbar :is(.tm-breadcrumb,.tm-breadcrumb strong,.tm-online) {
  color: #20262e !important;
}
body.tm-high-contrast.tm-light-mode .tm-calendar-grid {
  background: #515b68 !important;
  border-color: #515b68 !important;
}
body.tm-high-contrast.tm-light-mode .tm-calendar-grid > :is(.tm-week-label,.tm-week-number,.tm-day) {
  border-color: #515b68 !important;
}
body.tm-high-contrast.tm-light-mode .tm-calendar-grid > .tm-week-label,
body.tm-high-contrast.tm-light-mode .tm-calendar-grid > .tm-week-number {
  background: #f0f2f5 !important;
}
body.tm-high-contrast.tm-light-mode .tm-theme-switch {
  background: #805b00 !important;
  border-color: #4a3600 !important;
}
body.tm-high-contrast.tm-light-mode .tm-day { background: #fff !important; color: #080a0d !important; }
body.tm-high-contrast.tm-light-mode .tm-day.is-empty { background: #e2e6eb !important; }
body.tm-high-contrast.tm-light-mode .tm-day.is-work,
body.tm-high-contrast.tm-light-mode .tm-year-day.is-work { background: #ffed9c !important; border: 2px solid #805b00 !important; color: #1c1605 !important; }
body.tm-high-contrast.tm-light-mode :is(.tm-day.is-night,.tm-day.is-morning,.tm-day.is-afternoon,.tm-year-day.is-night,.tm-year-day.is-morning,.tm-year-day.is-afternoon) { background: #e8e2fa !important; border: 2px solid #543d94 !important; color: #21183c !important; }
body.tm-high-contrast.tm-light-mode :is(.tm-day.is-vacation,.tm-year-day.is-vacation) { background: #f8ddeb !important; border: 2px solid #a52c71 !important; color: #391329 !important; }
body.tm-high-contrast.tm-light-mode :is(button,a,summary):focus-visible,
body.tm-high-contrast.tm-light-mode :is(input,select,textarea):focus-visible { outline: 3px solid #805b00 !important; outline-offset: 3px; }
body[data-demo="true"] .tm-main:has(.tm-settings-layout){padding-top:24px;padding-bottom:40px}
body[data-demo="true"] .tm-settings-layout{gap:10px}
body[data-demo="true"] .tm-settings-main{gap:9px}
body[data-demo="true"] .tm-settings-layout .tm-form-card{padding:15px}
body[data-demo="true"] .tm-settings-layout .tm-setting-section{margin-top:14px;padding-top:13px}
body[data-demo="true"] .tm-settings-layout .tm-setting-section>p{margin-bottom:10px}@media(max-width:900px){
  body[data-demo="true"] .tm-main{padding:12px 11px calc(18px + env(safe-area-inset-bottom))}
  body[data-demo="true"] #tm-main>.tm-demo-banner{margin-bottom:10px;padding:8px 10px;font-size:10px}
  body[data-demo="true"] .tm-mobile-home{grid-template-columns:minmax(0,1fr);gap:10px}
  body[data-demo="true"] .tm-mobile-home>*{grid-column:1/-1}
  body[data-demo="true"] .tm-mobile-status{min-height:150px;padding:16px}
  body[data-demo="true"] .tm-mobile-status .tm-eyebrow{margin-bottom:9px}
  body[data-demo="true"] .tm-mobile-status h1{margin-bottom:12px;font-size:clamp(22px,5vw,30px)}
  body[data-demo="true"] .tm-mobile-day-count{width:96px;height:96px}
  body[data-demo="true"] .tm-mobile-day-count strong{font-size:34px}
  body[data-demo="true"] .tm-mobile-next{min-height:0;padding:16px}
  body[data-demo="true"] .tm-mobile-next .tm-eyebrow{margin-bottom:9px}
  body[data-demo="true"] .tm-mobile-next h2{font-size:21px}
  body[data-demo="true"] .tm-mobile-next>p:last-child{margin-top:8px;font-size:14px}
  body[data-demo="true"] .tm-mobile-vacation{min-height:92px;gap:10px;padding:13px 15px}
  body[data-demo="true"] .tm-mobile-vacation>span:nth-child(2){gap:4px}
  body[data-demo="true"] .tm-mobile-vacation small{font-size:9px}
  body[data-demo="true"] .tm-mobile-vacation strong{font-size:15px}
  body[data-demo="true"] .tm-mobile-vacation em{font-size:12px}
  body[data-demo="true"] .tm-mobile-holiday{gap:9px;padding:16px}
  body[data-demo="true"] .tm-mobile-holiday>strong{margin-top:4px;font-size:19px}
}@media(max-width:900px){
  body[data-demo="true"] #tm-main>.tm-demo-banner{margin-bottom:10px;padding:8px 10px;font-size:10px}
  body[data-demo="true"] .tm-calendar-page-head{gap:9px;margin-bottom:10px}
  body[data-demo="true"] .tm-calendar-page-head .tm-eyebrow{margin-bottom:5px;font-size:9px}
  body[data-demo="true"] .tm-calendar-page-head h1{font-size:clamp(23px,5vw,30px)}
  body[data-demo="true"] .tm-calendar-actions{gap:6px}
  body[data-demo="true"] .tm-calendar-actions .tm-button{min-height:38px;padding:0 10px;border-radius:10px;font-size:10px}
  body[data-demo="true"] .tm-calendar-gear{width:38px;height:38px;border-radius:10px}
  body[data-demo="true"] .tm-calendar-gear svg{width:18px;height:18px}
  body[data-demo="true"] .tm-calendar-screen{gap:9px}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend{justify-content:center;gap:7px 11px;font-size:9px;line-height:1.3}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend i{width:7px;height:7px}
  body[data-demo="true"] .tm-calendar-screen .tm-cal-today{min-width:47px;min-height:36px;padding:0 9px;border-radius:9px;font-size:10px}
  body[data-demo="true"] .tm-calendar-screen .tm-cal-month{gap:clamp(8px,4vw,22px)}
  body[data-demo="true"] .tm-calendar-screen .tm-cal-month h2{font-size:19px}
  body[data-demo="true"] .tm-calendar-screen .tm-icon-button{width:34px;height:34px}
  body[data-demo="true"] .tm-calendar-screen .tm-icon-button svg{width:19px;height:19px}
  body[data-demo="true"] .tm-calendar-grid{border-radius:16px}
  body[data-demo="true"] .tm-calendar-grid.has-week-numbers{grid-template-columns:30px repeat(7,minmax(0,1fr))}
  body[data-demo="true"] .tm-calendar-grid>.tm-week-label{min-height:32px;font-size:10px}
  body[data-demo="true"] .tm-calendar-grid>.tm-week-number{min-height:64px;font-size:9px}
  body[data-demo="true"] .tm-calendar-grid>.tm-day{min-height:64px;padding:5px 3px;font-size:11px}
  body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-day-number{font-size:13px}
  body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-day-type{font-size:6px}
  body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-holiday-tag{font-size:5px}
}@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen){display:flex;min-height:calc(100dvh - 108px);flex-direction:column}
  body[data-demo="true"] .tm-calendar-page-head{flex:none;margin-bottom:9px}
  body[data-demo="true"] .tm-calendar-screen{display:flex;min-height:0;flex:1;flex-direction:column;gap:9px}
  body[data-demo="true"] .tm-calendar-screen>.tm-cal-toolbar{flex:none}
  body[data-demo="true"] .tm-calendar-card{display:flex;min-height:0;flex:1;flex-direction:column;grid-column:auto}
  body[data-demo="true"] .tm-calendar-grid{display:grid;min-height:0;flex:1;grid-template-rows:32px repeat(var(--calendar-week-count),minmax(0,1fr));align-content:stretch}
  body[data-demo="true"] .tm-calendar-grid.has-week-numbers{grid-template-rows:32px repeat(var(--calendar-week-count),minmax(0,1fr))}
  body[data-demo="true"] .tm-calendar-grid>.tm-week-label{min-height:0}
  body[data-demo="true"] .tm-calendar-grid>.tm-week-number,
  body[data-demo="true"] .tm-calendar-grid>.tm-day{min-height:0}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend{flex:none;padding-bottom:2px}
}@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen){width:100%;max-width:none;padding-right:7px;padding-left:7px}
  body[data-demo="true"] .tm-calendar-page-head,
  body[data-demo="true"] .tm-calendar-screen,
  body[data-demo="true"] .tm-calendar-card,
  body[data-demo="true"] .tm-calendar-grid{width:100%;max-width:none}
  body[data-demo="true"] .tm-calendar-grid>*{min-width:0}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend{width:100%;justify-content:space-around}
}@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view)){height:calc(100dvh - 108px - env(safe-area-inset-bottom));min-height:0;overflow:hidden}
  body[data-demo="true"] .tm-calendar-screen:not(.is-year-view){min-height:0}
  body[data-demo="true"] .tm-calendar-card.is-month-view,
  body[data-demo="true"] .tm-calendar-grid{min-height:0}
}@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view)){height:calc(100dvh - 108px - env(safe-area-inset-bottom));min-height:0;overflow:hidden}
  body[data-demo="true"] .tm-calendar-screen:not(.is-year-view){height:calc(100dvh - 190px - env(safe-area-inset-bottom));min-height:0;flex:none}
  body[data-demo="true"] .tm-calendar-card.is-month-view{height:auto;min-height:0;flex:1 1 0}
  body[data-demo="true"] .tm-calendar-grid{height:100%;min-height:0;flex:1 1 0;grid-auto-rows:unset;grid-template-rows:32px repeat(var(--calendar-week-count),minmax(0,1fr))}
  body[data-demo="true"] .tm-calendar-grid.has-week-numbers{grid-template-rows:32px repeat(var(--calendar-week-count),minmax(0,1fr))}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend{min-height:18px}
}@media(max-width:900px){
  body[data-demo="true"] .tm-calendar-screen:not(.is-year-view){gap:0}
  body[data-demo="true"] .tm-calendar-screen:not(.is-year-view)>.tm-cal-toolbar{margin-bottom:9px}
}@media(max-width:900px){
  body[data-demo="true"] .tm-calendar-screen>.tm-legend{justify-content:center;gap:5px 10px}
  body[data-demo="true"] .tm-calendar-screen>.tm-legend>span{gap:4px}
}.tm-cycle-outgoing-label{margin-top:12px}
.tm-cycle-outgoing-hint{margin:6px 0 0;color:#a9b0ba;font-size:11px;line-height:1.45}
body[data-demo="true"] .tm-cycle-outgoing-hint{color:#c6a456}.tm-vacation-summary{display:grid;gap:12px;padding:15px 16px;border-color:#303640;background:linear-gradient(145deg,rgba(217,81,164,.045),transparent 62%),#151a20}
.tm-vacation-summary-label{margin:0;color:#cf5ca8;font-size:10px;font-weight:750;letter-spacing:.15em}
.tm-vacation-summary-main{display:flex;min-width:0;align-items:center;gap:12px}
.tm-vacation-summary-icon{display:grid;width:54px;height:58px;flex:none;place-items:center;border-radius:16px;background:rgba(217,81,164,.12);color:#e265b1}
.tm-vacation-summary-icon svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-vacation-summary-copy{display:grid;min-width:0;flex:1;gap:3px}
.tm-vacation-summary-copy small{color:#929aa5;font-size:11px}
.tm-vacation-summary-copy strong{font-size:14px;line-height:1.3}
.tm-vacation-summary-copy>span{color:#929aa5;font-size:11px}
.tm-vacation-countdown{flex:none;padding:8px 10px;border:1px solid rgba(217,81,164,.32);border-radius:99px;color:#db70b7;font-size:11px;font-weight:650;white-space:nowrap}
.tm-vacation-summary-stats{display:flex;align-items:center;gap:18px;padding-top:10px;border-top:1px solid #303640;color:#a2a9b3;font-size:11px}
.tm-vacation-summary-stats>span{display:flex;align-items:center;gap:5px}
.tm-vacation-summary-stats svg{width:18px;height:18px;color:#d65aa8;fill:none;stroke:currentColor;stroke-width:1.8}
.tm-vacation-summary-stats b{color:#f3f4f5;font-size:14px}
.tm-light-mode .tm-vacation-summary-stats b{color:#20252b}
body.tm-light-mode .tm-main .tm-bag-item.is-packed .tm-list-copy strong{color:#20252b;text-decoration:none;text-decoration-line:none}
body.tm-light-mode .tm-main .tm-bag-ready{border-color:#9fc6ae;background:#eff8f2;color:#20252b}
body.tm-light-mode .tm-main .tm-bag-ready svg{stroke:#318456}
body.tm-light-mode .tm-main .tm-bag-reminder{border-color:#d0d6de;background:#fff;color:#56616e}
body.tm-light-mode .tm-main .tm-bag-reminder svg{stroke:#927c4c}
body.tm-light-mode[data-demo="true"] .tm-demo-upcoming h2{color:#20252b}
body.tm-light-mode[data-demo="true"] .tm-demo-upcoming-row>small,body.tm-light-mode[data-demo="true"] .tm-demo-upcoming-empty{color:#56616e}
body.tm-light-mode[data-demo="true"] .tm-demo-upcoming,body.tm-light-mode[data-demo="true"] .tm-demo-upcoming-row{border-color:#d7dce3}
body.tm-light-mode[data-demo="true"] .tm-mobile-next h2{color:#8a6b24}
body.tm-light-mode[data-demo="true"] .tm-mobile-status .tm-eyebrow,body.tm-light-mode[data-demo="true"] .tm-mobile-next .tm-eyebrow,body.tm-light-mode[data-demo="true"] .tm-mobile-holiday .tm-eyebrow{color:#80621e}
body.tm-light-mode[data-demo="true"] .tm-mobile-vacation small,body.tm-light-mode[data-demo="true"] .tm-mobile-vacation em,body.tm-light-mode[data-demo="true"] .tm-mobile-holiday>small,body.tm-light-mode[data-demo="true"] .tm-mobile-holiday>p{color:#56616e}
body.tm-light-mode[data-demo="true"] .tm-mobile-holiday>strong{color:#20252b}
@media(max-width:900px){.tm-sidebar{width:min(300px,80vw);padding:22px 14px 18px}.tm-sidebar>#tm-sidebar-brand{max-width:calc(100% - 100px)}#tm-sidebar>.tm-side-caption{display:none}#tm-sidebar>nav.tm-nav:first-of-type{display:none}#tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{margin-top:66px;gap:5px}.tm-nav-tools .tm-nav-link{min-height:61px;gap:14px;padding-inline:12px;border-radius:12px}.tm-nav-tools .tm-nav-link>svg{width:22px;height:22px;flex:none;color:#c6a456}.tm-nav-tools .tm-nav-link span{font-size:14px!important;font-weight:600;letter-spacing:0!important;text-transform:none!important}.tm-sidebar-bottom{gap:11px}.tm-sidebar-footer-actions .tm-nav-link{min-height:48px}.tm-sidebar-version{margin-top:4px}.tm-sidebar-policy-footer{margin-top:0}}
@media(max-width:900px){#tm-sidebar>.tm-brand{max-width:calc(100% - 100px)}#tm-sidebar .tm-nav-tools .tm-nav-link span:nth-child(2){text-transform:none;letter-spacing:0}}
@media(max-width:900px){#tm-sidebar .tm-sidebar-footer-actions{grid-template-columns:1fr 1fr;gap:8px}#tm-sidebar .tm-sidebar-footer-actions .tm-nav-link{min-height:58px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:6px 4px;text-align:center}#tm-sidebar .tm-sidebar-footer-actions .tm-nav-link>svg{width:20px;height:20px}#tm-sidebar .tm-sidebar-footer-actions .tm-nav-link span{font-size:10px!important}#tm-sidebar .tm-sidebar-version{color:#9299a3;text-align:left;font-size:12px}#tm-sidebar .tm-sidebar-return .tm-nav-link{min-height:42px}}
@media(max-width:900px){#tm-sidebar .tm-sidebar-bottom{display:flex;flex-direction:column;gap:4px;margin-top:auto}#tm-sidebar .tm-sidebar-policy-footer{order:1;align-self:flex-start;margin:0 0 5px 5px;text-align:left}#tm-sidebar .tm-sidebar-return[aria-label="Sitio web"]{order:2}#tm-sidebar .tm-sidebar-return[aria-label="Sincronizar datos"]{order:3}#tm-sidebar #sidebar-backup-status{order:4;margin:8px 0 4px}#tm-sidebar .tm-sidebar-footer-actions{order:5}#tm-sidebar .tm-sidebar-version:not(#sidebar-backup-status){order:6;margin:5px 0 0;text-align:center}#tm-sidebar .tm-install-link{display:none}}
@media(max-width:900px){#tm-sidebar{padding-bottom:calc(18px + env(safe-area-inset-bottom))}#tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{gap:9px}}
@media(max-width:900px){#tm-sidebar{padding:14px 12px calc(12px + env(safe-area-inset-bottom))}#tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{margin-top:40px;gap:3px}#tm-sidebar .tm-nav-tools .tm-nav-link{min-height:52px;padding-inline:10px;border-radius:10px}#tm-sidebar .tm-sidebar-bottom{gap:2px}#tm-sidebar .tm-sidebar-return .tm-nav-link{min-height:36px;padding-block:5px}#tm-sidebar .tm-sidebar-policy-footer{margin-bottom:2px}#tm-sidebar #sidebar-backup-status{margin:5px 0 2px}#tm-sidebar .tm-sidebar-footer-actions .tm-nav-link{min-height:50px}}
@media(max-width:900px){#tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{margin-top:18px}#tm-sidebar .tm-nav-link span:nth-child(2){text-transform:none;letter-spacing:0}#tm-sidebar .tm-side-caption{text-transform:lowercase}#tm-sidebar .tm-side-caption::first-letter{text-transform:uppercase}#tm-sidebar .tm-demo-badge{text-transform:lowercase;letter-spacing:.06em}#tm-sidebar .tm-demo-badge::first-letter{text-transform:uppercase}}
@media(max-width:900px){body.tm-drawer-open .tm-sidebar{z-index:110}body.tm-drawer-open .tm-mobile-nav{display:none!important}#tm-sidebar .tm-sidebar-policy-footer{order:7;align-self:flex-start;margin:5px 0 0 5px;text-align:left}#tm-sidebar{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(min-width:901px){#tm-sidebar .tm-nav-link span:nth-child(2){text-transform:none;letter-spacing:0}#tm-sidebar .tm-side-caption{text-transform:lowercase}#tm-sidebar .tm-side-caption::first-letter{text-transform:uppercase}}
.tm-vacation-projected-note{margin:-4px 0 2px;color:#9ba2ad;font-size:12px;text-align:center}
@media(max-width:900px){
  body[data-demo="true"] .tm-vacation-heading{margin-bottom:12px}
  body[data-demo="true"] .tm-vacation-heading h1{font-size:clamp(29px,7vw,38px)}
  body[data-demo="true"] .tm-vacation-heading-icon,body[data-demo="true"] .tm-vacation-heading-icon svg{width:54px;height:54px}
  body[data-demo="true"] .tm-vacation-page{gap:11px}
  body[data-demo="true"] .tm-vacation-summary{gap:10px;padding:14px;border-radius:18px}
  body[data-demo="true"] .tm-vacation-summary-label{font-size:9px}
  body[data-demo="true"] .tm-vacation-summary-icon{width:48px;height:50px;border-radius:14px}
  body[data-demo="true"] .tm-vacation-summary-icon svg{width:30px;height:30px}
  body[data-demo="true"] .tm-vacation-summary-copy strong{font-size:13px}
  body[data-demo="true"] .tm-vacation-summary-copy small,body[data-demo="true"] .tm-vacation-summary-copy>span{font-size:10px}
  body[data-demo="true"] .tm-vacation-countdown{padding:7px 8px;font-size:10px}
  body[data-demo="true"] .tm-vacation-summary-stats{justify-content:space-between;gap:8px;padding-top:9px;font-size:10px}
  body[data-demo="true"] .tm-vacation-summary-stats svg{width:16px;height:16px}
  body[data-demo="true"] .tm-vacation-summary-stats b{font-size:13px}
  body[data-demo="true"] .tm-vacation-add summary{min-height:58px;border-radius:16px;color:#e477bd;font-size:13px}
  body[data-demo="true"] .tm-vacation-section-label{font-size:9px}
  body[data-demo="true"] .tm-vacation-projected-note{font-size:11px}
  body[data-demo="true"] .tm-vacation-cycle-card{min-height:78px;grid-template-columns:48px minmax(0,1fr) 32px;gap:10px;padding:12px 14px;border-radius:19px}
  body[data-demo="true"] .tm-vacation-cycle-icon{width:46px;height:48px;border-radius:15px}
  body[data-demo="true"] .tm-vacation-cycle-icon svg{width:28px;height:28px}
  body[data-demo="true"] .tm-vacation-cycle-copy strong{font-size:13px}
  body[data-demo="true"] .tm-vacation-cycle-copy small{font-size:11px}
  body[data-demo="true"] .tm-vacation-cycle-card input{width:24px;height:24px;accent-color:#d951a4}
}
@media(max-width:440px){body[data-demo="true"] .tm-vacation-countdown{padding:6px 7px;font-size:9px}body[data-demo="true"] .tm-vacation-summary-main{gap:8px}body[data-demo="true"] .tm-vacation-cycle-card{grid-template-columns:42px minmax(0,1fr) 28px;gap:8px;padding-inline:11px}}

.tm-demo-upcoming{margin:18px -21px -21px;padding:16px 18px 8px;border-top:1px solid #30353c}
.tm-demo-upcoming h2{margin:0 0 8px;color:#f0f1f3;font:600 clamp(18px,4vw,23px)/1.25 var(--display);letter-spacing:-.02em}
.tm-demo-upcoming-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;min-height:60px;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #30353c}
.tm-demo-upcoming-icon{display:grid;width:25px;height:25px;place-items:center;color:#e3b64e}
.tm-demo-upcoming-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-demo-upcoming-icon.is-event{color:#f0bc56}.tm-demo-upcoming-icon.is-doc{color:#9ba7b9}.tm-demo-upcoming-icon.is-vacation{color:#d951a4}.tm-demo-upcoming-icon.is-holiday{color:#ed5155}.tm-demo-upcoming-icon.is-bag{color:#c6a456}
.tm-demo-upcoming-row>strong{min-width:0;overflow:hidden;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.tm-demo-upcoming-row>small{color:#a0a6b0;font-size:10px;text-align:right;white-space:nowrap}
.tm-demo-upcoming-empty{margin:0;padding:12px 0 3px;border-top:1px solid #30353c;color:#a0a6b0;font-size:12px}
@media(max-width:900px){.tm-mobile-next{min-height:0;padding:18px 19px 14px}.tm-mobile-next .tm-eyebrow{margin-bottom:10px}.tm-mobile-next h2{font-size:clamp(20px,5vw,26px)}.tm-mobile-next>p{margin:8px 0 16px;font-size:14px}.tm-demo-upcoming{margin:0 -19px -14px;padding:14px 15px 6px}.tm-demo-upcoming h2{margin-bottom:6px;font-size:18px}.tm-demo-upcoming-row{grid-template-columns:25px minmax(0,1fr) auto;min-height:57px;gap:7px}.tm-demo-upcoming-icon{width:23px}.tm-demo-upcoming-row>strong{font-size:12px}.tm-demo-upcoming-row>small{font-size:9px}}
@media(max-width:380px){.tm-demo-upcoming-row{grid-template-columns:23px minmax(0,1fr);gap:6px}.tm-demo-upcoming-row>small{grid-column:2;text-align:left;white-space:normal}.tm-demo-upcoming-row{padding:8px 0}}

.tm-light-mode .tm-vacation-summary-stats b{color:#20252b}
/* Hide the sign-in action in the sidebar when no session is active. */
.tm-session-link[hidden]{display:none!important}
@media(max-width:900px){#tm-sidebar .tm-sidebar-policy-footer{align-self:center!important;margin:5px auto 0!important;text-align:center!important}}
/* Fit the demo calendar to the available viewport, keeping the full grid and legend visible. */
body[data-demo="true"]:has(.tm-calendar-screen:not(.is-year-view)){overflow:hidden;padding-bottom:0}
@media(min-width:901px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view)){height:calc(100dvh - 69px);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:clamp(10px,2.2vh,24px) clamp(18px,5vw,64px) 10px}
}
@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view)){height:calc(100dvh - 60px - 62px - env(safe-area-inset-bottom));min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:clamp(6px,1.5vh,14px) clamp(5px,2vw,14px) 5px}
}
body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view))>.tm-calendar-page-head{flex:none;margin-bottom:clamp(6px,1.4vh,14px)}
body[data-demo="true"] .tm-calendar-screen:not(.is-year-view){display:flex;width:100%;min-width:0;min-height:0;flex:1;flex-direction:column;align-items:stretch;gap:clamp(5px,1vh,10px)}
body[data-demo="true"] .tm-calendar-screen:not(.is-year-view)>.tm-cal-toolbar{flex:none;margin:0}
body[data-demo="true"] .tm-calendar-card.is-month-view{display:flex;width:100%;min-width:0;min-height:0;flex:1 1 0;flex-direction:column;overflow:hidden}
body[data-demo="true"] .tm-calendar-grid{display:grid;width:100%;max-width:none;min-width:0;min-height:0;height:100%;flex:1 1 0;grid-template-rows:clamp(27px,5vh,42px) repeat(var(--calendar-week-count),minmax(0,1fr));grid-auto-rows:unset;align-content:stretch;border-radius:clamp(12px,1.8vw,22px)}
body[data-demo="true"] .tm-calendar-grid.has-week-numbers{grid-template-columns:clamp(26px,3.5vw,42px) repeat(7,minmax(0,1fr));grid-template-rows:clamp(27px,5vh,42px) repeat(var(--calendar-week-count),minmax(0,1fr))}
body[data-demo="true"] .tm-calendar-grid>.tm-week-label,
body[data-demo="true"] .tm-calendar-grid>.tm-week-number,
body[data-demo="true"] .tm-calendar-grid>.tm-day{min-width:0;min-height:0}
body[data-demo="true"] .tm-calendar-grid>.tm-day{padding:clamp(3px,.7vh,8px) clamp(2px,.5vw,8px);font-size:clamp(10px,1.35vw,18px)}
body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-day-number{font-size:clamp(11px,1.55vw,20px)}
body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-day-type{font-size:clamp(5px,.7vw,9px)}
body[data-demo="true"] .tm-calendar-grid>.tm-day .tm-holiday-tag{font-size:clamp(5px,.65vw,8px)}
body[data-demo="true"] .tm-calendar-card.is-month-view>.tm-disclaimer{display:none}
body[data-demo="true"] .tm-calendar-screen:not(.is-year-view)>.tm-legend{width:100%;min-height:18px;flex:none;justify-content:center;gap:clamp(8px,1.5vw,18px);padding:0 0 2px;font-size:clamp(8px,.8vw,11px);line-height:1.2}
body[data-demo="true"] #tm-sidebar{padding:10px 10px 8px}
body[data-demo="true"] #tm-sidebar>.tm-brand{gap:7px;padding-inline:6px}
body[data-demo="true"] #tm-sidebar>.tm-brand .tm-brand-mark{width:32px;height:30px}
body[data-demo="true"] #tm-sidebar>.tm-theme-row{margin:7px 5px}
body[data-demo="true"] #tm-sidebar>.tm-side-caption{margin:12px 8px 5px}
body[data-demo="true"] #tm-sidebar>.tm-side-caption-bottom{margin-top:9px}
body[data-demo="true"] #tm-sidebar>.tm-nav{gap:1px}
body[data-demo="true"] #tm-sidebar .tm-nav-link{min-height:37px;padding-inline:8px;gap:9px}
body[data-demo="true"] #tm-sidebar .tm-sidebar-bottom{gap:0}
@media(max-width:900px){
  body[data-demo="true"] #tm-sidebar{padding:5px 7px calc(5px + env(safe-area-inset-bottom))}
  body[data-demo="true"] #tm-sidebar>.tm-brand{gap:5px;padding-inline:4px}
  body[data-demo="true"] #tm-sidebar>.tm-theme-row{margin:4px 4px}
  body[data-demo="true"] #tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{margin-top:5px;gap:0}
  body[data-demo="true"] #tm-sidebar .tm-nav-tools .tm-nav-link{min-height:36px;padding-inline:7px;gap:9px}
  body[data-demo="true"] #tm-sidebar .tm-nav-tools .tm-nav-link>svg{width:17px;height:17px}
  body[data-demo="true"] #tm-sidebar .tm-nav-tools .tm-nav-link span{font-size:12px!important}
  body[data-demo="true"] #tm-sidebar .tm-sidebar-bottom{gap:0}
  body[data-demo="true"] #tm-sidebar .tm-sidebar-policy-footer{margin:2px auto 0!important}
}
body.tm-reading-mode:not(.tm-light-mode) .tm-main :is(.tm-bag-progress,.tm-bag-ready,.tm-bag-item,.tm-bag-reminder,.tm-bag-actions .tm-button){background:var(--surface)!important;border-color:var(--line-light)!important;box-shadow:none!important}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-progress.is-complete{background:var(--surface)!important}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-progress .tm-progress-track{background:#36352f!important}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-progress .tm-progress-track i{filter:saturate(.65) brightness(.85)}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-ready{color:var(--text)!important}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-reminder{color:var(--muted)!important}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-switch span{border-color:var(--line-light);background:var(--surface-2)}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-switch input:checked+span{border-color:#82785f;background:#655d48}
body.tm-reading-mode:not(.tm-light-mode) .tm-main .tm-bag-switch input:checked+span:after{color:#e0d9c9}
body.tm-reading-mode.tm-light-mode .tm-main .tm-bag-switch span{border-color:#bdb8aa!important;background:#fff!important}
body.tm-reading-mode.tm-light-mode .tm-main .tm-bag-switch input:checked+span{border-color:#bdb8aa!important;background:#fff!important}
body.tm-reading-mode.tm-light-mode .tm-main .tm-bag-switch input:checked+span:after{color:#171717!important}
body.tm-light-mode .tm-main :is(.tm-cycle-choice,.tm-toggle-choice){border-color:#aeb6c0;background:#f1f3f6;color:#171a1e}
body.tm-light-mode .tm-main :is(.tm-cycle-choice,.tm-toggle-choice).is-selected,
body.tm-light-mode .tm-main .tm-settings-layout :is(.tm-cycle-choice,.tm-toggle-choice).is-selected{border:2px solid #3f444d!important;background:#626873!important;color:#fff!important;box-shadow:0 0 0 3px rgba(98,104,115,.22)!important}
html body.tm-light-mode .tm-main .tm-settings-layout .tm-settings-cycle-quick>.tm-cycle-choice.is-selected,
html body.tm-light-mode .tm-main .tm-settings-layout .tm-settings-mode>.tm-toggle-choice.is-selected,
html body.tm-light-mode .tm-main .tm-settings-layout .tm-cycle-status>.tm-toggle-choice.is-selected{border:2px solid #3f444d!important;background-color:#626873!important;background-image:none!important;color:#fff!important;box-shadow:0 0 0 3px rgba(98,104,115,.22)!important}
@media(max-width:900px){
  body[data-demo="true"] #tm-main:has(.tm-calendar-screen:not(.is-year-view)){height:calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;overflow:hidden}
  body[data-demo="true"] .tm-calendar-screen:not(.is-year-view){position:relative;height:auto!important;min-height:0;flex:1 1 0!important;overflow:hidden}
  body[data-demo="true"].tm-calendar-view-active .tm-calendar-card.is-month-view{height:auto!important;min-height:0;flex:1 1 0;margin-bottom:60px;overflow:hidden}
  body[data-demo="true"].tm-calendar-view-active .tm-calendar-grid{min-height:0;height:auto!important;max-height:none;flex:1 1 0;grid-template-rows:clamp(25px,4vh,34px) repeat(var(--calendar-week-count),minmax(0,1fr))}
  body[data-demo="true"].tm-calendar-view-active .tm-calendar-grid.has-week-numbers{grid-template-rows:clamp(25px,4vh,34px) repeat(var(--calendar-week-count),minmax(0,1fr))}
  body[data-demo="true"].tm-calendar-view-active .tm-calendar-card.is-month-view>.tm-legend{display:flex;min-height:18px;flex:none;align-items:center;justify-content:center;flex-wrap:wrap;gap:clamp(7px,2vw,12px);margin:0;padding:2px 2px 0;color:#9ca3ad;font-size:clamp(7px,1.8vw,9px);line-height:1.2}
}
@media(max-width:900px){
  body[data-demo="true"] #tm-sidebar{padding:8px 9px calc(8px + env(safe-area-inset-bottom))}
  body[data-demo="true"] #tm-sidebar>nav.tm-nav-tools[aria-label="Herramientas"]{margin-top:8px;gap:3px}
  body[data-demo="true"] #tm-sidebar .tm-nav-tools .tm-nav-link{min-height:39px;padding-inline:8px}
  body[data-demo="true"] #tm-sidebar .tm-nav-tools .tm-nav-link span{font-size:13px!important}
}
