@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@400;500;600;700;800;900&display=swap");
:root{--bg:#f3f7fc;--panel:#ffffff;--text:#17324f;--muted:#6a7b8f;--line:#d7e3f0;--accent:#12497f;--accent-light:#69aaf3;--accent2:#eaf4ff;--shadow:0 18px 50px rgba(18,73,127,.10);--event:#69aaf3;--report:#d94949;--other:#7656c9;--brief:#f2c94c;--reporting:#1f2430;--investors:#7A5AF8;--sustainability:#31936A;--public:#DB5E93;--index:#E98B35;--education:#f2c94c;--innovation:#8d98a6;--others:#f4b6c8}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:'Overpass',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);background:linear-gradient(180deg,#f8fbff 0%,#eef5fc 100%);min-height:100vh}.ambient{position:fixed;pointer-events:none;filter:blur(1px);opacity:.5;border-radius:999px}.ambient-a{width:420px;height:420px;background:radial-gradient(circle,rgba(105,170,243,.28) 0,transparent 70%);top:-150px;right:-120px}.ambient-b{width:360px;height:360px;background:radial-gradient(circle,rgba(18,73,127,.10) 0,transparent 70%);bottom:-130px;left:-100px}.shell{width:min(1220px,calc(100% - 32px));margin:0 auto;padding:38px 0 44px;position:relative}.hidden{display:none!important}.login-card{width:min(560px,100%);margin:9vh auto 0;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:24px;padding:40px;box-shadow:var(--shadow)}.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:white;font-weight:800;letter-spacing:.09em;border-radius:10px;padding:9px 11px;font-size:14px}.brand-mark.small{padding:6px 8px;font-size:11px;border-radius:8px}.brand-line{display:flex;align-items:center;gap:11px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:#6f87a1;margin:0 0 8px}.brand-line .eyebrow{margin:0}.login-card h1,.topbar h1{font-size:clamp(30px,4vw,48px);line-height:1.03;letter-spacing:-.035em;margin:18px 0 8px}.topbar h1{font-size:36px;margin-top:13px}.lede{color:var(--muted);font-size:15px;line-height:1.6;margin:0}.login-form{margin-top:30px}.login-form label,.form-grid label{font-size:13px;font-weight:700;color:#3d4a58}.password-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:8px}input,select{width:100%;border:1px solid #d9e0e7;background:#fff;border-radius:12px;padding:12px 13px;color:var(--text);font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}input:focus,select:focus{border-color:var(--accent-light);box-shadow:0 0 0 4px rgba(105,170,243,.22)}button{font:inherit;border:0;cursor:pointer}.primary,.ghost,.icon-btn,.danger{border-radius:11px;min-height:42px;padding:0 15px;font-size:13px;font-weight:750}.primary{background:var(--accent);color:#fff}.primary:hover{background:#0f3f6d}.ghost,.icon-btn{background:#fff;border:1px solid var(--line);color:#334252}.ghost:hover,.icon-btn:hover{background:#f3f8fe}.icon-btn{min-width:42px;padding:0}.danger{background:#fff0f0;border:1px solid #f3c0c0;color:#a83232}.status{font-size:12px;color:#a83b3b;min-height:18px;margin:10px 0 0}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}.header-actions{display:flex;align-items:center;gap:10px}.sync-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:#edf7f2;color:#2f7658;font-size:12px;font-weight:750;border:1px solid #d5ecdf}.sync-pill .dot{width:8px;height:8px;border-radius:50%;background:var(--accent-light)}.sync-pill.saving{background:#fff4e8;color:#9b6b13;border-color:#f1dfb3}.sync-pill.saving .dot{background:#d99a26}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:14px}.week-nav{display:flex;gap:8px;align-items:center}.week-label{font-weight:800;text-align:right}.tiny{font-size:12px;color:var(--muted);line-height:1.45}.legend-card{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;background:linear-gradient(180deg,#ffffff,#fdfefe);border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:14px}.legend-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.legend-title{font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:#84909c}.legend-item{font-size:12px;color:#536171}.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}.swatch.event{background:var(--event)}.swatch.report{background:var(--report)}.swatch.other{background:var(--other)}.swatch.brief{background:var(--brief)}.tag{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800;color:#fff}.tag.reporting{background:var(--reporting)}.tag.investors{background:var(--investors)}.tag.sustainability{background:var(--sustainability)}.tag.public{background:var(--public)}.tag.index{background:var(--index)}.tag.education{background:var(--education);color:#4e4300}.tag.innovation{background:var(--innovation);color:#fff}.tag.others{background:var(--others);color:#6d2940}.calendar-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden;outline:1px solid rgba(105,170,243,.08)}.calendar{display:grid;grid-template-columns:150px repeat(5,minmax(150px,1fr));min-width:900px}.calendar-wrap{overflow-x:auto}.cell{min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px}.cell:nth-child(6n){border-right:0}.head-cell{background:#f3f8fe;text-align:center;padding:15px 10px}.head-cell .dow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8995a2;font-weight:800}.head-cell .date{font-size:15px;font-weight:850;margin-top:3px}.slot-cell{display:flex;flex-direction:column;justify-content:center;background:#f7fbff}.slot-cell strong{font-size:13px}.slot-cell span{font-size:11px;color:var(--muted);margin-top:3px}.slot{min-height:132px}.empty-slot{width:100%;height:100%;min-height:108px;border:1px dashed #c9dbee;background:#fbfdff;color:#6f84a0;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-weight:700}.empty-slot:hover{background:#eef6ff;border-color:#9fc4ea;color:#3e5f83}.plus{width:28px;height:28px;border-radius:999px;background:#e6f1fd;display:flex;align-items:center;justify-content:center;font-size:18px}.booking{width:100%;min-height:108px;border-radius:15px;padding:14px;text-align:left;color:#fff;position:relative;overflow:hidden;box-shadow:0 8px 20px rgba(30,45,60,.10);transition:transform .15s,box-shadow .15s}.booking:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(30,45,60,.15)}.booking.event{background:linear-gradient(145deg,#69aaf3,#12497f)}.booking.report{background:linear-gradient(145deg,#df5959,#bf3f3f)}.booking.other{background:linear-gradient(145deg,#8d70dc,#5e3eaa)}.booking.brief{background:linear-gradient(145deg,#f7d96a,#e5b928);color:#3f3700}.booking.brief .product-chip{background:rgba(255,255,255,.36);border-color:rgba(70,55,0,.10);color:#3f3700}.booking.brief .tag{color:#fff}.booking.brief .tag.education{color:#4e4300}.booking.brief .owner{color:#4e4300;opacity:.88}.booking-title{font-weight:850;font-size:14px;line-height:1.3;margin:0 0 10px;padding-right:48px}.product-chip{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:4px 7px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.owner{font-size:10px;opacity:.9;margin-top:10px;word-break:break-all}.footer-note{font-size:11px;color:#71849a;text-align:center;margin-top:14px;display:flex;flex-direction:column;gap:6px}.ownership{color:var(--accent)}.ownership strong{font-weight:800}.modal-backdrop{position:fixed;inset:0;background:rgba(18,42,71,.34);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:22px;z-index:20}.modal{width:min(620px,100%);background:#fff;border-radius:22px;border:1px solid var(--line);box-shadow:0 28px 80px rgba(24,38,52,.22);padding:22px}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}.modal h2{font-size:24px;letter-spacing:-.02em;margin:0 0 4px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:flex;flex-direction:column;gap:7px}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;align-items:center;gap:9px;margin-top:5px}.spacer{flex:1}@media(max-width:760px){.shell{width:min(100% - 20px,1220px);padding-top:20px}.login-card{padding:28px 22px;border-radius:20px}.password-row{grid-template-columns:1fr}.topbar,.toolbar{align-items:flex-start;flex-direction:column}.week-label{text-align:left}.header-actions{width:100%;justify-content:space-between}.legend-card{padding:12px}.calendar-card{overflow-x:auto}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.modal-actions{flex-wrap:wrap}.spacer{display:none}.modal-actions button{flex:1}.topics{gap:7px}}
.reminder-planner{border:1px solid #dce6ef;background:linear-gradient(180deg,#f8fbff,#eef6ff);border-radius:16px;padding:16px;margin-top:2px}.reminder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.reminder-head h3{font-size:16px;margin:1px 0 5px;letter-spacing:-.01em}.switch-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 11px}.switch-row input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.reminder-options{display:grid;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #e1e8ef}.reminder-options fieldset{border:0;margin:0;padding:0}.reminder-options legend{font-size:13px;font-weight:800;color:#3d4a58;margin-bottom:8px}.rhythm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-card{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:9px!important;background:#fff;border:1px solid #dfe6ed;border-radius:12px;padding:10px;cursor:pointer}.check-card:has(input:checked){border-color:#8fbef0;background:#f4f9ff;box-shadow:0 0 0 2px rgba(105,170,243,.12)}.check-card input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--accent);flex:0 0 auto}.check-card span{display:flex;flex-direction:column;gap:2px}.check-card strong{font-size:12px}.check-card small{font-size:10px;font-weight:500;color:var(--muted);line-height:1.35}.smart-note{display:flex;gap:9px;align-items:flex-start;background:#edf6ff;border-radius:12px;padding:10px 12px;color:#41607f}.smart-note span{font-size:16px;color:var(--accent)}.smart-note p{margin:0;font-size:11px;line-height:1.45}.reminder-ribbon{position:absolute;left:12px;bottom:10px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);padding:3px 7px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.booking:has(.reminder-ribbon) .owner{padding-bottom:24px}@media(max-width:760px){.reminder-head{flex-direction:column}.rhythm-grid{grid-template-columns:1fr}.switch-row{align-self:flex-start}}

.topbar h1,.login-card h1,.modal h2{color:var(--accent)}
.toolbar,.legend-card,.login-card,.modal,.calendar-card{backdrop-filter:saturate(120%)}
.week-label{color:var(--accent)}
.primary{box-shadow:0 8px 18px rgba(18,73,127,.18)}
.primary:hover{box-shadow:0 10px 22px rgba(18,73,127,.22)}
.ghost,.icon-btn{transition:background-color .18s,border-color .18s,color .18s,transform .15s}
.ghost:hover,.icon-btn:hover{border-color:#bdd5ee;color:var(--accent)}
.brand-mark{box-shadow:0 6px 18px rgba(18,73,127,.18)}
.tag{box-shadow:inset 0 -1px 0 rgba(255,255,255,.12)}

/* v4 category/product display fixes */
.product-legend{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;color:#fff;line-height:1}
.product-legend.event{background:var(--event)}
.product-legend.report{background:var(--report)}
.product-legend.other{background:var(--other)}
.product-legend.brief{background:var(--brief);color:#594b00}
.booking.other{background:linear-gradient(145deg,#8a68df,#6545b7)}
.booking.brief{background:linear-gradient(145deg,#f7d763,#e8b92d);color:#4d4100}
.booking.brief .product-chip,.booking.brief .tag,.booking.brief .reminder-ribbon{border-color:rgba(77,65,0,.14)}
.booking.brief .product-chip{background:rgba(255,255,255,.36);color:#4d4100}
.tag.education{background:#f2c94c;color:#4e4300}
.tag.innovation{background:#8d98a6;color:#fff}
.tag.others{background:#f4b6c8;color:#6d2940}


/* Slot blocking */
.mode-chooser{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:2px}
.mode-option{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .18s,background-color .18s,box-shadow .18s}
.mode-option:has(input:checked){border-color:var(--accent-light);background:#f3f8fe;box-shadow:0 0 0 3px rgba(105,170,243,.12)}
.mode-option input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--accent);flex:0 0 auto}
.mode-option span{display:flex;flex-direction:column;gap:2px}
.mode-option strong{font-size:12px;color:var(--text)}
.mode-option small{font-size:10px;font-weight:500;color:var(--muted);line-height:1.35}
.block-fields{display:grid;gap:12px}
.block-callout{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border:1px solid #d8dee7;border-radius:14px;background:#f4f6f8;color:#4d5866}
.block-callout p{margin:3px 0 0;font-size:11px;line-height:1.45;color:#707b88}
.block-lock{display:flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 auto;border-radius:8px;background:#727d89;color:#fff;font-size:18px;font-weight:800}
.optional{font-weight:500;color:var(--muted)}
.blocked-slot{width:100%;height:100%;min-height:108px;border:1px solid #cbd3dc;border-radius:14px;background:repeating-linear-gradient(135deg,#f3f5f7,#f3f5f7 10px,#e9edf1 10px,#e9edf1 20px);color:#54606d;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:12px;text-align:center;transition:border-color .18s,transform .15s,box-shadow .15s}
.blocked-slot:hover{border-color:#aeb8c3;transform:translateY(-1px);box-shadow:0 8px 20px rgba(38,52,67,.08)}
.block-icon{width:25px;height:25px;border-radius:999px;background:#697582;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800}
.blocked-title{font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.blocked-reason{font-size:11px;font-weight:700;color:#485460;line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.blocked-hint{font-size:9px;color:#7c8792;line-height:1.25}
@media(max-width:760px){.mode-chooser{grid-template-columns:1fr}}

/* EPRA v6 branding */
.epra-logo{display:block;object-fit:contain;object-position:left center}
.header-logo{width:76px;height:50px}
.login-logo{width:132px;height:95px;margin-bottom:12px}
.login-brand{display:flex;flex-direction:column;align-items:flex-start}
.brand-line{min-height:52px}
.product-legend.other{background:#7656c9;color:#fff;box-shadow:0 4px 12px rgba(118,86,201,.22)}
.product-legend.other::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;margin-right:6px;opacity:.95}
@media(max-width:760px){.header-logo{width:66px;height:44px}.login-logo{width:112px;height:82px}}

/* Recurring slot blocks */
.recurring-block-option{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;padding:12px 13px;border:1px solid #cfdbe8;border-radius:13px;background:#f8fbff;cursor:pointer}
.recurring-block-option input{width:17px;height:17px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--accent)}
.recurring-block-option span{display:flex;flex-direction:column;gap:2px}
.recurring-block-option strong{font-size:12px;color:var(--accent)}
.recurring-block-option small{font-size:10px;font-weight:500;color:var(--muted);line-height:1.4}
.recurring-block-option:has(input:checked){border-color:#91b9e3;background:#eef6ff;box-shadow:0 0 0 2px rgba(105,170,243,.10)}
.blocked-slot.recurring{background:repeating-linear-gradient(135deg,#eef5fc,#eef5fc 10px,#dfeaf6 10px,#dfeaf6 20px);border-color:#b8cee5;color:#34516f}
.recurring-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;background:#12497f;color:#fff;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}

/* Current-day highlighting */
.head-cell.today-column{background:linear-gradient(180deg,#e7f2ff 0%,#dcecff 100%);box-shadow:inset 0 3px 0 var(--accent-light)}
.slot.today-column{background:linear-gradient(180deg,rgba(105,170,243,.10),rgba(105,170,243,.045))}
.today-column .empty-slot{background:#f5faff;border-color:#9fc8f2}
.today-column .empty-slot:hover{background:#edf6ff;border-color:#69aaf3}
.today-badge{display:inline-flex;align-items:center;margin-left:7px;padding:3px 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:8px;font-weight:900;letter-spacing:.05em;vertical-align:middle}
@media(max-width:760px){.today-badge{display:inline-flex}}
