/* VPSRobot Mesai — çalışan paneli */
:root {
  --canvas: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #eceef3;
  --line-2: #e1e4eb;
  --text: #1e2330;
  --text-2: #4a5163;
  --muted: #8b93a5;
  --primary: #2d5be3;
  --primary-soft: #e7edfc;
  --primary-ink: #2148c0;
  --orange: #f0703f;
  --orange-soft: #fde3d6;
  --orange-ink: #b9481c;
  --green: #23a464;
  --green-soft: #ddf3e7;
  --green-ink: #157a48;
  --red: #e04a5f;
  --red-soft: #fce4e8;
  --red-ink: #b42339;
  --chip-grey: #eef0f4;
  --violet: #6e5be6;
  --r-card: 12px;
  --r-ctl: 8px;
  --r-chip: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sidebar: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
iconify-icon { display: inline-block; width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ================= Shell ================= */
.shell {
  display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh;
  /* Kenar menü zemini sayfa boyunca uzasın */
  background: linear-gradient(90deg, var(--surface) calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px), var(--line) var(--sidebar), transparent var(--sidebar));
}

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 0;
}
.brand {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 21px; margin-bottom: 26px;
}
.nav-item {
  position: relative; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 21px; color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item.active::after {
  content: ''; position: absolute; right: -16px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px 0 0 3px; background: var(--orange);
}
.nav-tip {
  position: absolute; left: 54px; top: 50%; transform: translateY(-50%);
  padding: 5px 9px; border-radius: 6px; background: var(--text); color: #fff;
  font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .12s ease; z-index: 30;
}
.nav-spacer { flex: 1; }
.nav-bottom {
  width: 42px; height: 42px; border-radius: 11px; border: 0; display: grid; place-items: center;
  font-size: 20px; background: var(--primary-soft); color: var(--primary);
}
@media (hover: hover) and (pointer: fine) {
  .nav-item:not(.active):hover { background: var(--surface-2); color: var(--text); }
  .nav-item:hover .nav-tip, .nav-bottom:hover .nav-tip { opacity: 1; }
}

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); min-width: 0; }
.crumbs iconify-icon { color: var(--muted); font-size: 14px; }
.crumbs .here { color: var(--primary); font-weight: 600; white-space: nowrap; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.clock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.clock iconify-icon { font-size: 16px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.user-chip .who { line-height: 1.25; }
.user-chip .who b { display: block; font-size: 13px; font-weight: 600; }
.user-chip .who span { font-size: 11px; color: var(--muted); }
.user-chip > iconify-icon { color: var(--muted); font-size: 16px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
  transform-origin: top right; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}
@starting-style { .user-menu[open] .menu { opacity: 0; transform: scale(.97); } }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none;
  border-radius: 7px; font-size: 13px; color: var(--text-2); text-align: left;
}
.menu iconify-icon { font-size: 18px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (hover: hover) and (pointer: fine) { .menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); } }

.content { width: 100%; padding: 24px 32px 56px; }

/* ================= Duty (header) ================= */
.duty { display: flex; align-items: center; gap: 10px; }
.duty form { display: flex; }
.duty-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.duty-live {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 7px;
  background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.duty-live b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; }
.show-sm { display: none; }

/* ================= Dialog ================= */
dialog.sheet {
  border: 0; padding: 0; border-radius: 16px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), overlay .2s allow-discrete, display .2s allow-discrete;
}
@starting-style { dialog.sheet[open] { opacity: 0; transform: scale(.96); } }
dialog.sheet::backdrop { background: rgba(20, 28, 48, .45); }
.sheet-body { padding: 22px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sheet-head .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; flex: none; background: var(--primary-soft); color: var(--primary); }
.sheet-head .ic.red { background: var(--red-soft); color: var(--red); }
.sheet-head h3 { font-size: 16px; }
.sheet-head p { margin: 0; font-size: 12px; color: var(--muted); }
.sheet-head .close { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font-size: 18px; }
.end-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.end-grid div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.end-grid span { display: block; font-size: 11px; color: var(--muted); }
.end-grid b { font-size: 15px; font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 16px; }
.note iconify-icon { font-size: 17px; margin-top: 1px; }
.note.warn { background: var(--orange-soft); color: var(--orange-ink); }
.note.good { background: var(--green-soft); color: var(--green-ink); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ================= Avatars ================= */
.av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; background: var(--chip-bg, var(--primary-soft)); color: var(--chip-fg, var(--primary-ink));
}
.av.sq { border-radius: 9px; }
.av.lg { width: 34px; height: 34px; font-size: 12px; }
.av.icon { font-size: 16px; }

/* ================= Page head ================= */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.back {
  width: 36px; height: 36px; border-radius: var(--r-ctl); display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 18px;
}
.page-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.page-title .soft { color: var(--muted); font-weight: 500; }
.page-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-head .end { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--primary); color: #fff;
  transition: transform .16s var(--ease-out), background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn iconify-icon { font-size: 17px; }
.btn.soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn.white { background: var(--surface); color: var(--text-2); border-color: var(--line-2); font-weight: 500; }
.btn.green { background: var(--green); }
.btn.ghost { background: var(--surface-2); color: var(--text-2); }
.btn.danger { background: var(--red-soft); color: var(--red-ink); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { filter: brightness(1.04); }
  .btn.white:hover { border-color: var(--muted); }
}
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 0; background: none; display: grid; place-items: center;
  color: var(--text-2); font-size: 16px; transition: background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface); } }

/* ================= Segmented ================= */
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.seg a {
  padding: 6px 14px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.seg a small { color: var(--muted); font-weight: 400; }
.seg a.on { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.seg a.on small { color: var(--primary-ink); opacity: .7; }
.seg a.off { color: var(--muted); pointer-events: none; opacity: .6; }

/* ================= Flash & notice ================= */
.flash {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; margin-bottom: 18px;
  font-size: 13px; font-weight: 500; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
@starting-style { .flash { opacity: 0; transform: translateY(-6px); } }
.flash iconify-icon { font-size: 19px; }
.flash.ok { background: var(--green-soft); color: var(--green-ink); }
.flash.error { background: var(--red-soft); color: var(--red-ink); }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-ink); font-size: 13px;
}
.notice iconify-icon { font-size: 20px; }
.notice b { font-weight: 600; }

/* ================= Layout ================= */
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; min-width: 0; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 30px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 12px; font-weight: 400; }
.card-head .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }

/* ================= Stat cards ================= */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  position: relative; display: block; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 14px 16px 14px 20px; min-width: 0;
}
.stat::before { content: ''; position: absolute; left: 0; top: 14px; height: 44px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--primary)); }
.stat-title { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-title iconify-icon { font-size: 14px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 4px 0 8px; line-height: 1.2; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.trend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11px; font-weight: 600; background: var(--primary-soft); color: var(--primary-ink);
}
.pill iconify-icon { font-size: 12px; }
.pill.orange { background: var(--orange-soft); color: var(--orange-ink); }
.pill.green { background: var(--green-soft); color: var(--green-ink); }
.pill.red { background: var(--red-soft); color: var(--red-ink); }
.pill.grey { background: var(--chip-grey); color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { a.stat:hover .stat-title { color: var(--primary); } }

/* ================= Toolbar ================= */
.toolbar {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 4px;
  border-radius: var(--r-ctl); background: var(--surface-2);
}
.toolbar .range { font-size: 12px; font-weight: 500; color: var(--text-2); margin-left: 6px; }
.toolbar .end { margin-left: auto; display: flex; gap: 4px; }
.tool-link {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px;
  font-size: 12px; color: var(--text-2); transition: background-color .15s ease;
}
.tool-link iconify-icon { font-size: 15px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .tool-link:hover { background: var(--surface); } }

/* ================= Week table ================= */
.week-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.week { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 760px; }
.week th {
  font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; padding: 12px 8px 10px;
  border-bottom: 1px solid var(--line);
}
.week th + th, .week td + td { border-left: 1px solid var(--line); }
.week th.today { color: var(--primary); font-weight: 600; }
.week th.person, .week td.person { width: 168px; }
.week td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.week td.today { background: #fbfcff; }
.week tr:last-child td { border-bottom: 0; }
.week .group td {
  padding: 8px 8px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text);
}
.group-row { display: flex; align-items: center; gap: 6px; }
.group-row iconify-icon { color: var(--muted); }
.group-row .end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-2); font-size: 12px; }
.person-cell { display: flex; align-items: center; gap: 9px; padding: 2px 2px; min-height: 38px; }
.person-cell b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-cell span { font-size: 11px; color: var(--muted); }
.stack { display: grid; gap: 4px; }

/* ================= Chips ================= */
.chip {
  position: relative; display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 6px 8px 6px 12px; border-radius: var(--r-chip); background: var(--chip-grey); color: var(--text-2);
}
.chip::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: currentColor; }
.chip .t { display: block; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.chip .s { display: block; font-size: 10px; line-height: 1.3; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .tx { min-width: 0; }
.chip > iconify-icon { margin-left: auto; font-size: 14px; opacity: .8; }
.chip.blue { background: var(--primary-soft); color: var(--primary-ink); }
.chip.green { background: var(--green-soft); color: var(--green-ink); }
.chip.orange { background: var(--orange-soft); color: var(--orange-ink); }
.chip.red { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--red-soft) 5px 10px); color: var(--red-ink); }
.chip.open {
  background: transparent; border: 1px dashed #c3cbdc; color: var(--primary-ink);
  transition: background-color .15s ease, border-color .15s ease;
}
.chip.open::before { display: none; }
.chip.open { padding-left: 8px; }
@media (hover: hover) and (pointer: fine) { .chip.open:hover { background: var(--primary-soft); border-color: var(--primary); } }
.hatch {
  display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 6px; border-radius: var(--r-chip);
  font-size: 10px; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.3;
  background: repeating-linear-gradient(135deg, transparent 0 5px, #eef0f4 5px 10px); border: 1px solid #eef0f4;
}
.hatch.red { color: var(--red-ink); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--red-soft) 5px 10px); border-color: var(--red-soft); }
.dash { color: #c3c8d4; font-size: 12px; text-align: center; padding: 8px 0; }

/* ================= Lists (right column) ================= */
.day-nav { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: var(--r-ctl); background: var(--surface-2); margin-bottom: 8px; }
.day-nav .date { font-size: 12px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.day-nav .end { margin-left: auto; }
.day-nav .icon-btn.off { opacity: .35; pointer-events: none; }
.rows { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.row-item:last-child { border-bottom: 0; }
.row-item .tx { min-width: 0; }
.row-item b { display: block; font-size: 12px; font-weight: 600; }
.row-item span { font-size: 11px; color: var(--muted); }
.row-item .end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px; text-align: center;
  color: var(--muted); font-size: 12px;
}
.empty iconify-icon { font-size: 26px; color: #c3c8d4; }
.empty a { color: var(--primary); font-weight: 600; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 0 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .r { text-align: right; }

/* ================= Status card ================= */
.status { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.status-ic {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 21px;
  background: var(--primary-soft); color: var(--primary);
}
.status-ic.green { background: var(--green-soft); color: var(--green); }
.status-ic.orange { background: var(--orange-soft); color: var(--orange); }
.status b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.status span { font-size: 12px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.actions { display: grid; gap: 8px; }

/* ================= Big table ================= */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; }
.pos { color: var(--green-ink); font-weight: 600; }
.neg { color: var(--red-ink); font-weight: 600; }

/* ================= Booking ================= */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--text-2); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); }
.legend i.sel { background: var(--primary); border-color: var(--primary); }
.legend i.mine { background: var(--primary-soft); border-color: var(--primary-soft); }
.legend i.taken { background: var(--chip-grey); border-color: var(--chip-grey); }
.legend i.bonus { border-color: var(--orange); }
.legend i.past { background: repeating-linear-gradient(135deg, transparent 0 2px, #e3e6ec 2px 4px); }

.period + .period { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.period-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.period-head .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 17px; }
.period-head b { font-size: 13px; font-weight: 600; }
.period-head span { font-size: 12px; color: var(--muted); }
.period-head .pill { margin-left: auto; }

.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-box {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 10px 9px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, transform .16s var(--ease-out), color .12s ease;
}
.tile-box .h { font-size: 14px; font-weight: 600; line-height: 1.2; }
.tile-box .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:active .tile-box { transform: scale(.97); }
.tile.bonus .tile-box { border-color: var(--orange); }
.tile.bonus .tile-box .s { color: var(--orange-ink); font-weight: 500; }
.tile input:checked + .tile-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.tile input:checked + .tile-box .s { color: rgba(255, 255, 255, .85); }
.tile.also .tile-box { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.tile.also .tile-box .s { color: var(--primary-ink); }
.tile input:focus-visible + .tile-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.tile.taken .tile-box, .tile.mine .tile-box, .tile.past .tile-box { cursor: default; }
.tile.taken .tile-box { background: var(--chip-grey); border-color: var(--chip-grey); color: var(--text-2); }
.tile.mine .tile-box { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-ink); }
.tile.mine .tile-box .s { color: var(--primary-ink); font-weight: 500; }
.tile.past .tile-box {
  color: #b3b9c6; border-color: #eef0f4;
  background: repeating-linear-gradient(135deg, transparent 0 5px, #f2f3f6 5px 10px);
}
.tile.taken:active .tile-box, .tile.mine:active .tile-box, .tile.past:active .tile-box { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .tile:not(.taken):not(.mine):not(.past) .tile-box:hover { border-color: var(--primary); }
}

.summary { position: sticky; top: 20px; }
.sum-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 6px 22px; color: var(--muted); font-size: 12px; }
.sum-empty iconify-icon { font-size: 34px; color: #c3c8d4; }
.sum-day { font-size: 12px; color: var(--muted); }
.sum-time { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 14px; }
.dur { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.dur label { display: block; cursor: pointer; }
.dur input { position: absolute; opacity: 0; pointer-events: none; }
.dur span {
  display: flex; flex-direction: column; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2);
  transition: background-color .12s ease, border-color .12s ease;
}
.dur span b { font-size: 13px; font-weight: 600; }
.dur span small { font-size: 11px; color: var(--muted); }
.dur input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.dur input:disabled + span { opacity: .45; cursor: not-allowed; }
.dur input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.calc { display: grid; gap: 8px; padding: 12px 0; margin-bottom: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.calc div { display: flex; justify-content: space-between; color: var(--text-2); }
.calc div.total { color: var(--text); font-weight: 600; font-size: 13px; }
.hint { display: flex; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.hint iconify-icon { font-size: 15px; margin-top: 1px; }

/* ================= Hour grid (calendar page) ================= */
.hours { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 760px; }
.hours th { font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.hours th.today { color: var(--primary); font-weight: 600; }
.hours th:first-child, .hours td:first-child { width: 62px; }
.hours td { padding: 2px 3px; border-bottom: 1px solid var(--line); height: 34px; }
.hours th + th, .hours td + td { border-left: 1px solid var(--line); }
.hours td.hr { font-size: 11px; color: var(--muted); padding-left: 6px; white-space: nowrap; }
.hours td.today { background: #fbfcff; }
.hours td.now { background: #fff6f1; }
.hours .chip { padding: 4px 6px 4px 10px; }
.hours .chip::before { top: 5px; bottom: 5px; }
.hours .chip .t { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.people { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--text-2); }
.people span { display: inline-flex; align-items: center; gap: 6px; }
.people i { width: 10px; height: 10px; border-radius: 3px; background: var(--chip-fg); }

/* ================= Earnings ================= */
.earn-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.earn-hero .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--green-soft); color: var(--green); }
.earn-hero .amount { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.earn-hero .lbl { font-size: 12px; color: var(--muted); }
.earn-hero .side { margin-left: auto; display: flex; gap: 10px; }
.kv { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); min-width: 110px; }
.kv b { display: block; font-size: 16px; font-weight: 600; }
.kv span { font-size: 11px; color: var(--muted); }
.rule-list { display: grid; gap: 10px; font-size: 12px; color: var(--text-2); }
.rule-list div { display: flex; align-items: center; gap: 10px; }
.rule-list iconify-icon { font-size: 17px; color: var(--muted); }
.rule-list b { margin-left: auto; font-weight: 600; color: var(--text); }
.prose { font-size: 12px; color: var(--text-2); margin: 0 0 14px; }

/* ================= Mobile agenda ================= */
.agenda { display: none; }
.wstrip { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.wstrip .dl { font-size: 11px; font-weight: 600; color: var(--text-2); }
.wstrip .dn {
  position: relative; margin: 6px auto 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: var(--text-2);
}
.wstrip .dn.today { color: var(--primary); font-weight: 600; }
.wstrip .dn.sel { background: var(--primary); color: #fff; font-weight: 600; }
.wstrip .dn.mine::after { content: ''; position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.ag-day { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ag-day .n { font-size: 22px; font-weight: 600; line-height: 1; }
.ag-day .w { font-size: 10px; font-weight: 600; color: var(--text-2); margin-top: 3px; }
.ag-day b { display: block; font-size: 13px; font-weight: 600; }
.ag-day span { font-size: 11px; color: var(--muted); }
.ag-list { display: grid; gap: 8px; padding-left: 0; }
.ag-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.ag-row .tm { font-size: 11px; color: var(--muted); padding-top: 8px; }
.ag-row .chip { padding: 9px 10px 9px 14px; }
.ag-row .chip .t { font-size: 12px; }
.ag-row .chip .s { font-size: 11px; }

/* ================= Auth ================= */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 0 12px; font: inherit;
  background: var(--surface); color: var(--text); outline: none; transition: border-color .15s ease;
}
.field input:focus { border-color: var(--primary); }
.check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 18px; }
.btn.sso { height: 46px; font-size: 14px; }
.sso-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.alt-login { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.alt-login summary { cursor: pointer; font-size: 12px; color: var(--text-2); font-weight: 500; text-align: center; list-style: none; }
.alt-login summary::-webkit-details-marker { display: none; }
.alt-login[open] summary { margin-bottom: 14px; }
.err { color: var(--red-ink); font-size: 12px; margin-top: 6px; }

/* ================= Tab bar (mobile) ================= */
.tabbar { display: none; }

/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .layout > .col.side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .summary { position: static; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { height: 56px; padding: 0 16px; position: sticky; top: 0; z-index: 20; }
  .clock, .user-chip .who, .user-chip > iconify-icon { display: none; }
  .user-chip { padding: 0; border: 0; }
  .content { padding: 16px 16px 96px; }
  .page-head { margin-bottom: 16px; gap: 10px; }
  .page-title { font-size: 17px; }
  .page-head .end { margin-left: 0; width: 100%; }
  .page-head .end .seg { width: 100%; }
  .page-head .end .seg a { flex: 1; justify-content: center; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  .topbar-end { gap: 10px; }
  .duty { gap: 6px; }
  .duty .btn.sm { padding: 0 10px; }
  .end-grid b { font-size: 13px; }

  .stats, .stats.four {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none;
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 64%; scroll-snap-align: start; }

  .card { padding: 16px; }
  /* Mobilde iki kolon tek akışa iner; sırayı m-* sınıfları belirler */
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .layout > .col { display: contents; }
  .m-1 { order: 1; } .m-2 { order: 2; } .m-3 { order: 3; } .m-4 { order: 4; } .m-5 { order: 5; }
  .week-view { display: none; }
  .agenda { display: block; }

  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile-box { min-height: 58px; padding: 9px 8px; }
  .summary {
    position: fixed; top: auto; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 15;
    border-radius: 16px 16px 0 0; padding: 14px 16px; box-shadow: 0 -8px 24px rgba(16, 24, 40, .1);
  }
  .summary .card-head, .summary .calc, .summary .hint, .summary .sum-empty iconify-icon, .summary .mine-today { display: none; }
  .summary .sum-empty { padding: 4px 0 10px; }
  .summary .sum-time { font-size: 18px; margin: 0 0 10px; }
  .summary .dur { margin-bottom: 10px; }
  .summary .dur span { padding: 7px 10px; }
  .book-page .content, .book-page { padding-bottom: 260px; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
    font-size: 10px; font-weight: 500; color: var(--muted);
  }
  .tabbar iconify-icon { font-size: 22px; }
  .tabbar a.on { color: var(--primary); }
  .table .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
