*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#ffffff;--bg2:#f7f7f5;--bg3:#ebebea;
  --text:#1a1a1a;--text2:#666;--text3:#999;
  --border:#e5e5e3;--border2:#c8c8c4;
  --red:#dc2626;--red-bg:#fef2f2;
  --btn-bg:#e8e8e6;--btn-text:#1a1a1a;
  --btn-active-bg:#1a1a1a;--btn-active-text:#ffffff;
}
.dark{
  --bg:#1a1a1a;--bg2:#242424;--bg3:#2e2e2e;
  --text:#f0f0f0;--text2:#aaa;--text3:#666;
  --border:#333;--border2:#555;
  --red:#f87171;--red-bg:#2d1515;
  --btn-bg:#333333;--btn-text:#f0f0f0;
  --btn-active-bg:#f0f0f0;--btn-active-text:#1a1a1a;
}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:background 0.2s,color 0.2s}
.wrap{max-width:720px;margin:0 auto;padding:0 1rem 3rem}
.header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 0 0.5rem;flex-wrap:wrap;gap:10px}
.header-left h1{font-size:1.5rem;font-weight:500;color:var(--text);letter-spacing:-0.02em}
.header-left p{font-size:13px;color:var(--text2);margin-top:3px}
.header-right{display:flex;align-items:center;gap:10px}
.year-tabs{display:flex;gap:6px}
.year-tab{padding:7px 18px;font-size:13px;font-weight:500;border-radius:8px;border:none;color:var(--btn-text);background:var(--btn-bg);cursor:pointer;transition:all 0.15s;text-decoration:none;display:inline-block}
.year-tab:hover:not(.active){background:var(--border2)}
.year-tab.active{background:var(--btn-active-bg);color:var(--btn-active-text)}
.dark-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;user-select:none}
.dark-toggle span{font-size:12px;color:var(--text3)}
.toggle-track{width:36px;height:20px;border-radius:10px;background:var(--border2);position:relative;transition:background 0.2s}
.dark .toggle-track{background:#888}
.toggle-thumb{width:16px;height:16px;border-radius:50%;background:#fff;position:absolute;top:2px;left:2px;transition:transform 0.2s;box-shadow:0 1px 3px rgba(0,0,0,0.3)}
.dark .toggle-thumb{transform:translateX(16px)}
.next-bar{background:var(--bg2);border:0.5px solid var(--border);border-radius:10px;padding:0.75rem 1rem;margin:1rem 0;display:flex;align-items:center;gap:10px}
.next-bar-label{font-size:11px;text-transform:uppercase;letter-spacing:0.08em;color:var(--text3)}
.next-bar-name{font-size:14px;font-weight:500;color:var(--text)}
.next-bar-days{margin-left:auto;font-size:13px;font-weight:500;background:var(--btn-bg);border-radius:20px;padding:3px 12px;color:var(--text);white-space:nowrap}
.legend{display:flex;gap:16px;font-size:11px;color:var(--text2);margin-bottom:1rem;flex-wrap:wrap}
.legend-dot{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:4px;vertical-align:middle}
.legend-dot-blue{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:4px;vertical-align:middle;background:#2563eb}
.view-tabs{display:flex;gap:6px}
.view-tab{padding:6px 16px;font-size:12px;font-weight:500;border-radius:8px;border:none;color:var(--btn-text);background:var(--btn-bg);cursor:pointer;transition:all 0.15s}
.view-tab:hover:not(.active){background:var(--border2)}
.view-tab.active{background:var(--btn-active-bg);color:var(--btn-active-text)}
.calendar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:1.25rem}
@media(max-width:560px){.calendar-grid{grid-template-columns:repeat(2,1fr)}}
.month-card{background:var(--bg);border:0.5px solid var(--border);border-radius:10px;overflow:hidden}
.month-title{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:0.07em;color:var(--text2);padding:10px 10px 5px}
.day-headers{display:grid;grid-template-columns:repeat(7,1fr);padding:0 5px 3px}
.day-hdr{font-size:10px;text-align:center;color:var(--text3);font-weight:500}
.day-hdr.weekend{color:var(--red);opacity:0.7}
.days-grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 5px 8px;gap:1px}
.day-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:4px}
.day-cell.empty{opacity:0}
.day-cell.weekend{color:var(--red)}
.day-cell.holiday{color:var(--red);font-weight:500;background:var(--red-bg);border-radius:4px}
.day-cell.vacation{color:#2563eb;font-weight:500;background:#eff6ff;border-radius:4px}
.dark .day-cell.vacation{color:#93c5fd;background:#1e3a5f}
.day-cell.today{background:var(--btn-active-bg);color:var(--btn-active-text);border-radius:50%;font-weight:500}
.day-cell.today.holiday{background:var(--red);color:#fff;border-radius:50%}
.workdays-card{background:var(--bg2);border:0.5px solid var(--border);border-radius:10px;padding:1rem 1.25rem;margin-bottom:1.25rem}
.workdays-card h2{font-size:13px;font-weight:500;color:var(--text);margin-bottom:4px;display:flex;align-items:center;gap:6px}
.workdays-card .sub{font-size:11px;color:var(--text2);margin-bottom:10px}
.workdays-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.workdays-row input{flex:1;min-width:120px;font-size:12px;padding:7px 9px;border:1.5px solid var(--border2);border-radius:7px;background:var(--bg);color:var(--text)}
.workdays-row input:focus{outline:none;border-color:var(--text)}
.calc-btn{padding:7px 20px;font-size:12px;font-weight:500;border-radius:7px;border:none;background:var(--btn-active-bg);color:var(--btn-active-text);cursor:pointer;white-space:nowrap;transition:opacity 0.15s}
.calc-btn:hover{opacity:0.8}
.work-result{font-size:13px;font-weight:500;color:var(--text);margin-top:8px;min-height:20px}
.holidays-card{background:var(--bg2);border:0.5px solid var(--border);border-radius:10px;padding:1rem 1.25rem;margin-bottom:1.5rem}
.holidays-card h2{font-size:13px;font-weight:500;color:var(--text);margin-bottom:10px;display:flex;align-items:center;gap:6px}
.holiday-item{display:flex;gap:12px;padding:8px 0;border-bottom:0.5px solid var(--border)}
.holiday-item:last-child{border-bottom:none}
.hday-date{font-size:12px;font-weight:500;color:var(--red);width:95px;min-width:95px;padding-top:1px}
.hday-desc{font-size:12px;color:var(--text2);line-height:1.55}
.faq-section{margin-bottom:1.5rem}
.faq-section h2{font-size:14px;font-weight:500;color:var(--text);margin-bottom:10px}
.faq-item{border-bottom:0.5px solid var(--border);padding:10px 0}
.faq-item:last-child{border-bottom:none}
.faq-q{font-size:13px;font-weight:500;color:var(--text);margin-bottom:4px}
.faq-a{font-size:12px;color:var(--text2);line-height:1.6}
.vacation-card{background:var(--bg2);border:0.5px solid var(--border);border-radius:10px;padding:1rem 1.25rem;margin-bottom:1rem}
.vacation-card h3{font-size:13px;font-weight:600;color:var(--text);margin-bottom:5px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vacation-card .vc-meta{font-size:11px;color:var(--text3);margin-bottom:8px}
.vacation-card .vc-desc{font-size:12px;color:var(--text2);line-height:1.6}
.vc-days{display:inline-flex;align-items:center;gap:4px;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:500;padding:2px 8px;border-radius:20px;margin-left:auto}
.dark .vc-days{background:#1e3a5f;color:#93c5fd}
.vc-tag{display:inline-block;font-size:10px;background:var(--bg3);color:var(--text2);padding:2px 7px;border-radius:10px;margin-right:4px;margin-top:4px}
footer{text-align:center;font-size:11px;color:var(--text3);padding-top:1rem;border-top:0.5px solid var(--border)}
