*{box-sizing:border-box}body{margin:0;background:#f1f4f7;color:#202c35;font:15px system-ui,sans-serif}header{background:#fff;display:flex;align-items:center;gap:24px;padding:14px 5%;border-bottom:1px solid #ddd}header img{width:135px;height:88px;object-fit:contain}h1,h2,h3{margin:0 0 12px}header h1{margin:0}aside{background:#fff0d4;padding:12px 5%;font-weight:600}main{max-width:1450px;margin:auto;padding:24px}nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.layout{display:grid;grid-template-columns:270px 1fr;gap:20px}section{background:white;padding:22px;border:1px solid #dce1e5;border-radius:12px;min-width:0}button{border:0;background:#263945;color:white;padding:10px 15px;border-radius:7px;cursor:pointer;font:inherit}button:hover{opacity:.85}button.primary{background:#b50f18}button.secondary{background:#e8edf1;color:#24313a}label{display:block;margin:10px 0;font-weight:600}input,select,textarea{display:block;width:100%;padding:9px;border:1px solid #aeb9c2;border-radius:6px;font:inherit;margin-top:5px}input[type=color]{height:40px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.dept{display:block;width:100%;text-align:left;margin:8px 0}.muted{color:#5c6974;font-size:13px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.day{border:1px solid #ddd;border-radius:5px;padding:7px;min-height:85px;overflow-wrap:anywhere}.need{color:#ad1020;font-weight:bold}.good{color:#17633d}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{text-align:left;border-bottom:1px solid #ddd;padding:8px}#error{color:#a01010;white-space:pre-wrap} .brand{padding:15px;border-radius:7px;color:white;display:flex;align-items:center;gap:12px}.brand img{width:55px;max-height:55px;object-fit:contain;background:white}@media(max-width:800px){.layout{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.calendar{grid-template-columns:repeat(3,minmax(0,1fr))}main{padding:12px}}
.portal { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; }
.portal .sidebar { display: flex; flex-direction: column; gap: 20px; background: #14232d; color: #edf3f5; padding: 24px 16px; align-self: start; min-height: 100vh; position: sticky; top: 0; }
.sidebar .platform-logo { background: #fff; padding: 14px; border-radius: 10px; text-align: center; }
.sidebar img { width: 148px; height: 75px; object-fit: contain; }
.sidebar a { color: #edf3f5; padding: 10px; }
.sidebar nav { flex-direction: column; margin: 0; }
.sidebar nav button { width: 100%; text-align: left; background: #243846; }
.sidebar nav button[aria-current] { background: #405463; box-shadow: inset 4px 0 #e97b80; }
.portal .workspace { width: 100%; padding: clamp(16px, 4vw, 48px); margin: 0 auto; }
.portal .workspace-header { display: block; background: transparent; padding: 0 0 20px; border: 0; }
.portal section + section { margin-top: 16px; }
.portal .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.portal [role=alert]:not([hidden]) { color: #8d181f; background: #fff1f0; border-radius: 7px; padding: 12px; }
.portal .wizard summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.portal .wizard details { border-bottom: 1px solid #dce1e5; }
.portal textarea { min-height: 92px; }
.portal .day { background: white; }
.portal .department-logo { width: 64px; height: 64px; object-fit: contain; background: white; border-radius: 6px; }
.portal .department-brand { display: flex; gap: 12px; align-items: center; border-left: 6px solid; padding-left: 12px; }
.portal button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 800px) {
  .portal { grid-template-columns: 1fr; }
  .portal .sidebar { position: static; min-height: 0; }
}
