:root{--ink:#102a43;--muted:#627d98;--teal:#087f8c;--line:#d9e2ec;--label:300px}*{box-sizing:border-box}body{margin:0;padding:30px 24px;min-height:100vh;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 6% 5%,#087f8c22,transparent 34rem),radial-gradient(circle at 95% 95%,#f5a62320,transparent 32rem),#f3f7f8}main{max-width:1440px;margin:auto}button,input{font:inherit}button{cursor:pointer;color:var(--ink);background:white;border:1px solid var(--line);border-radius:8px;padding:8px 11px}button:hover{background:#e7f4f4;border-color:#7ab9be}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #f5a623;outline-offset:2px}.home{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--muted);text-decoration:none;margin-bottom:40px}header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:32px}.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--teal);font-weight:800;margin:0 0 10px}h1{font-size:clamp(44px,6vw,72px);line-height:1;letter-spacing:-.055em;margin:0}h1 span{color:var(--teal)}.intro{color:var(--muted);margin:14px 0 0}.badge{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);background:#ffffffa0;border:1px solid white;padding:12px 16px;border-radius:30px}.badge span{width:7px;height:7px;background:var(--teal);border-radius:50%}.board{background:white;border:1px solid #fff;border-radius:18px;box-shadow:0 22px 65px #102a4312}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:28px;padding:24px;background:#ffffff;border-radius:18px 18px 0 0}.toolbar label{display:block;font-size:11px;color:var(--muted);font-weight:750;margin-bottom:8px}.search-wrap{position:relative;flex:1;max-width:480px}input{color:var(--ink);border:1px solid var(--line);background:#f7fafc;border-radius:8px;padding:11px 12px;min-width:0}#search{width:100%;font-size:13px}.date-buttons{display:flex;gap:6px}#date{font-size:13px}#now{background:var(--teal);border-color:var(--teal);color:white;font-size:12px;font-weight:700}#results{position:absolute;top:100%;margin-top:6px;left:0;right:0;background:white;box-shadow:0 14px 35px #102a4326;border:1px solid var(--line);border-radius:10px;z-index:10;max-height:330px;overflow:auto}#results button{display:block;text-align:left;width:100%;border:0;border-radius:0;padding:12px 14px;font-size:13px}#results small{display:block;color:var(--muted);margin-top:3px}#results p{padding:10px 14px;font-size:13px;color:var(--muted)}.table-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 24px;border-block:1px solid var(--line);background:#f7fafb;font-size:12px;color:var(--muted)}#day-label{font-weight:750;color:var(--ink)}.table-scroll{overflow:auto;border-bottom:1px solid var(--line)}table{border-spacing:0;table-layout:fixed;width:100%;min-width:1428px}thead th{height:30px;font-size:10px;color:var(--muted);font-weight:600;background:#f7fafb}th.city-head{width:var(--label);position:sticky;left:0;z-index:3;text-align:left;padding-left:24px}td{padding:0;border-top:1px solid #e9eff3}tbody tr:first-child td{border-top:0}td.city{position:sticky;left:0;z-index:2;background:white;border-right:1px solid var(--line);padding:20px 15px 20px 18px;box-shadow:6px 0 10px #102a4305}.city-top{display:flex;align-items:center;gap:8px}.handle{cursor:grab;font-size:22px;color:#9badbc;user-select:none}.city-name{font-weight:800;font-size:15px}.zone-name{font-size:10px;color:var(--muted);margin:4px 0 10px 24px;overflow-wrap:anywhere}.local-tag{font-size:9px;font-weight:700;color:var(--teal);background:#e6f3f3;padding:3px 5px;border-radius:4px}.city-bottom{display:flex;align-items:center;justify-content:space-between;margin-left:24px;gap:8px}.clock{font-size:20px;font-weight:750;letter-spacing:-.04em}.clock small{font-size:10px;font-weight:600;letter-spacing:0}.date-text{display:block;font-size:10px;color:var(--muted);margin-top:3px;letter-spacing:0;font-weight:500}.actions{display:flex;gap:3px}.actions button{padding:4px 6px;font-size:11px;border-color:transparent;background:transparent;color:var(--muted)}td.slot{width:47px;text-align:center;background:#fff;position:relative}.hour{border:0;border-radius:0;width:100%;height:116px;padding:0 2px;background:transparent;color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.hour:hover{background:transparent;border:0}.hour strong{font-size:15px;font-weight:650}.hour small{font-size:9px;opacity:.8}.hour .cell-date{font-size:9px;min-height:14px;font-weight:750;white-space:nowrap}td.work{background:#f1f8f7;color:#226b68}td.day{background:#fff8e9;color:#917134}td.night{background:#e7edf5;color:#7b90ab}td.selected{box-shadow:inset 2px 0 var(--teal),inset -2px 0 var(--teal);background:#d5efed;color:#075b63}tr:first-child td.selected{box-shadow:inset 2px 0 var(--teal),inset -2px 0 var(--teal),inset 0 2px var(--teal)}tr:last-child td.selected{box-shadow:inset 2px 0 var(--teal),inset -2px 0 var(--teal),inset 0 -2px var(--teal)}td.current .hour:after{content:"";width:4px;height:4px;border-radius:100%;background:var(--teal);position:absolute;bottom:13px}.board-footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px}.legend{display:flex;gap:20px;color:var(--muted);font-size:10px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:3px;border:1px solid #102a4310}.legend .work{background:#d5eae6}.legend .day{background:#fff0cc}.legend .night{background:#dce4f0}#unlock{font-size:11px;padding:5px 8px;color:var(--teal)}footer{margin-top:24px;color:var(--muted);font-size:12px;line-height:1.7}footer p{margin:4px 0}#reference{font-size:11px;opacity:.8}#notice{font-size:12px;color:var(--teal);min-height:18px}.dragging{opacity:.4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:700px){:root{--label:235px}body{padding:20px 12px}.home{margin-bottom:28px}.badge{display:none}header{margin-bottom:24px}.toolbar{padding:18px;align-items:stretch;flex-direction:column;gap:16px}.search-wrap{max-width:none}.date-buttons{width:100%}#date{flex:1;width:130px}.table-heading{padding:12px 18px;flex-direction:column;gap:5px}.board-footer{padding:14px;flex-wrap:wrap}.legend{gap:12px;font-size:9px}td.city{padding:18px 10px}.clock{font-size:18px}.city-name{font-size:13px}.actions{gap:0}.actions button{padding:4px}table{min-width:1363px}}


/* Page shell shared with PW Tools. */
:root {
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --surface: rgba(255,255,255,.92);
  --primary: #087f8c;
  --primary-dark: #05636d;
  --accent: #f5a623;
  --ok: #177245;
  --warn: #d98b0b;
  --bad: #b42318;
  --soft: #f3f7f8;
  --shadow: 0 24px 70px rgba(16,42,67,.14);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 20px 16px 28px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(8,127,140,.17), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(245,166,35,.16), transparent 28rem),
    #f3f7f8;
}

.home-button {
  position: fixed;
  z-index: 10;
  top: 20px;
  left: 20px;
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(8,127,140,.22);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.home-button:hover { transform: translateY(-1px); background: var(--primary-dark); box-shadow: 0 13px 28px rgba(8,127,140,.28); }
.home-button:focus-visible { outline: 3px solid rgba(245,166,35,.65); outline-offset: 3px; }
.home-button svg { flex: 0 0 auto; }


main { width: min(100%, 1100px); margin: 0 auto; padding: 0; }
header { display: block; margin-bottom: 16px; }
h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.02; letter-spacing: -.045em; }
.eyebrow { margin: 0 0 4px; font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.intro { margin-top: 7px; line-height: 1.45; font-size: .9rem; }
.board { margin-top: 14px; border: 1px solid rgba(255,255,255,.86); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.toolbar { padding: 22px; border-radius: 24px 24px 0 0; background: transparent; }
.toolbar label { font-size: .77rem; font-weight: 850; }
input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(8,127,140,.11); }
.date-buttons button { min-height: 42px; border-radius: 11px; background: #e8eff2; font-size: .84rem; font-weight: 800; }
#now { background: var(--primary); color: white; }
#now:hover { background: var(--primary-dark); }
footer { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: .78rem; line-height: 1.6; }
@media (min-width: 1101px) and (max-width: 1450px) { main { padding-top: 62px; } }
@media (max-width: 1100px) { body { padding-top: 82px; } }
@media (max-width: 520px) {
 body { padding: 72px 12px 24px; }
 .home-button { position: absolute; top: 14px; left: 12px; min-height: 40px; }
 h1 { font-size: 2.15rem; }
 .intro { font-size: .82rem; }
 .board { border-radius: 19px; }
 .toolbar { padding: 16px; border-radius: 19px 19px 0 0; }
}

/* Full-day comparison and larger row controls. */
main { width: min(100%, 1480px); padding-top: 62px; }
:root { --label: 240px; }
table { min-width: 0; width: 100%; table-layout: fixed; }
td.slot { width: auto; }
th.city-head { width: var(--label); padding-left: 16px; }
td.city { padding: 15px 12px; }
.city-top { gap: 6px; min-height: 45px; padding-left: 34px; }
.city-details { position: relative; }
.reorder { position: absolute; left: -4px; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 32px; }
.reorder button { width: 30px; height: 30px; padding: 0; border-radius: 8px; background: #e8eff2; font-size: 21px; font-weight: 800; line-height: 1; }
.reorder .handle { font-size: 25px; line-height: 18px; }
.city-name { font-size: 14px; overflow-wrap: anywhere; }
.zone-name { margin: 0 0 8px 34px; }
.city-bottom { margin-left: 34px; }
.local-tag { display: inline-flex; flex: 0 0 28px; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(8,127,140,.14); border-radius: 8px; background: #e6f3f3; color: var(--primary); cursor: help; transition: background .15s ease; }
.local-tag svg { display: block; }
.local-tag:hover, .local-tag:focus-visible { background: #d4ecec; }
.local-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hour { height: 128px; padding-inline: 0; }
.hour strong { font-size: clamp(10px, 1vw, 15px); letter-spacing: -.06em; }
.hour .cell-date { font-size: 8px; white-space: normal; }
thead th { font-size: 9px; }
#results { max-height: 390px; }
#results button { line-height: 1.6; border-bottom: 1px solid #edf2f5; }
@media (max-width: 1050px) {
 :root { --label: 195px; }
 .city-name { font-size: 12px; }
 .clock { font-size: 18px; }
 td.city { padding-inline: 8px; }
 thead th { font-size: 8px; }
 .hour strong { font-size: 10px; }
 .hour small { font-size: 8px; }
}
@media (max-width: 760px) {
 main { padding-top: 0; }
 table { min-width: 1000px; }
 .hour strong { font-size: 13px; }
}

/* Live row sorting: original row reserves its place under the floating copy. */
.handle { touch-action: none; -webkit-user-select: none; user-select: none; }
.sorting-rows, .sorting-rows * { cursor: grabbing !important; user-select: none !important; }
.drag-placeholder > td { opacity: .2; }
.drag-placeholder { background: #d5efed; }
.drag-preview { position: fixed; top: 0; z-index: 1000; overflow: hidden; pointer-events: none; border-radius: 12px; outline: 2px solid var(--primary); background: white; box-shadow: 0 16px 40px rgba(16,42,67,.25); will-change: transform; }
.drag-preview table { margin-top: 0; }
.drag-preview td { border-top: 0; }
.drag-preview td.city { position: static; }
.drag-preview .hour { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .drag-preview { will-change: auto; } }
