:root {
  color-scheme: light; font-family: "Inter", "Avenir Next", system-ui, sans-serif; color: #192620;
  background: #f5f7f5; --primary: #01794d; --primary-dark: #00643f; --tint: #e8f4ec;
  --line: #e2e8e3; --muted: #55625c; --sidebar: #151d19; --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary-dark); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #258d64; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.upper { font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.loading { padding: 2rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
aside { min-height: 100vh; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; background: var(--sidebar); color: #fff; padding: 27px 15px 14px; }
.brand { display: grid; justify-items: start; gap: 7px; margin: 5px 9px 35px; }
.brand img { display: block; width: min(100%, 172px); height: auto; }
.brand span { font-size: .65rem; font-weight: 750; letter-spacing: .32em; color: #b8d5c1; }
.nav-label { margin: 0 11px 12px; color: #9caaa1; font-size: .69rem; }
nav { display: grid; gap: 5px; }
.nav-button { width: 100%; background: none; padding: 12px 10px; text-align: left; border: 1px solid transparent; border-radius: 8px; color: #d7e2da; display: flex; align-items: center; gap: 11px; font-size: .87rem; font-weight: 600; }
.nav-button:hover, .nav-button[aria-current] { color: white; background: #273e34; }
.nav-button[aria-current] { border-color: #466757; }
.nav-button[aria-current] .icon { color: #bde6ca; }
.side-bottom { margin-top: auto; border-top: 1px solid #36443c; padding-top: 12px; }
.side-bottom .nav-button { color: #cad8ce; }
.profile { display: flex; align-items: center; gap: 9px; margin: 8px 6px 4px; font-size: .78rem; }
.profile .muted { color: #b9c9bd; }
.avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e2eee5; color: #2e6d50; font-weight: 800; font-size: .74rem; }
.avatar.a1 { background: #e4f2fb; color: #276386; }.avatar.a2 { background: #f8ebdf; color: #865330; }.avatar.a3 { background: #e3f3ec; color: #247449; }
.workspace { min-width: 0; }
.topbar { background: #fff; height: 66px; padding: 0 30px; border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: .83rem; color: var(--muted); }
.crumb strong { color: #3a3544; }
.top-actions, .actions, .week-controls, .legend, .chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
main { max-width: 1600px; margin: 0 auto; padding: 28px 30px 35px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-heading p { margin-top: 6px; font-size: .91rem; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); letter-spacing: -.055em; line-height: 1.09; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: .95rem; }
.btn { min-height: 36px; border: 1px solid #ddd9e8; border-radius: 8px; background: #fff; color: #363041; padding: 7px 11px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-weight: 680; font-size: .82rem; text-decoration: none; }
.btn:hover { background: #edf5ef; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { color: #a02240; }
.btn.icon-only { padding: 7px; width: 35px; flex: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.badge { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: .73rem; font-weight: 750; color: #555061; background: #efedf4; }
.badge.demo { color: #205e47; background: #e5f2e9; }.badge.demo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #398560; }
.badge.green { color: #1f6b49; background: #e6f5ee; }.badge.amber { color: #88570b; background: #fff1d9; }.badge.blue { color: #305c9e; background: #e9f1ff; }.badge.red { color: #9c3150; background: #fdebf0; }.badge.purple { color: #355f4b; background: #e6f0e9; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 18px; box-shadow: 0 2px 6px #182c2108; }
.panel-header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 13px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 9px; }.panel-title > .icon { color: var(--primary); }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 10px; padding: 0 17px 16px; }
.upcoming-grid .ticket { width: 100%; }
.ticket { display: flex; align-items: flex-start; text-align: left; flex-direction: column; gap: 4px; padding: 10px 11px; border: 1px solid #e0e9e2; border-radius: 8px; color: #26392e; background: #f8fbf8; }
.ticket:hover { border-color: #5f9a7a; }
.ticket strong { font-size: .86rem; overflow-wrap: anywhere; }
.ticket small { font-size: .75rem; color: var(--muted); }
.ticket .badge { margin-top: 4px; }
.week-head { padding-bottom: 13px; }.week-head h2 { margin-top: 4px; }
.week-controls input { width: auto; max-width: 150px; }.week-controls select { width: auto; max-width: 185px; }
.legend { gap: 14px; padding: 0 18px 13px; font-size: .74rem; color: var(--muted); }
.dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; background: #5d9b78; }
.dot.green { background: #3ba875; }.dot.amber { background: #cc901e; }.dot.gray { background: #9a95a5; }
.table-scroll { overflow: auto; border-radius: 0 0 13px 13px; }
.schedule { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 735px; }
.schedule th,.schedule td { border-top: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; padding: 8px; }
.schedule th:last-child,.schedule td:last-child { border-right: none; }
.schedule thead th { background: #f7faf8; padding: 11px 9px; font-size: .73rem; text-transform: uppercase; color: #575162; letter-spacing: .05em; }
.schedule .day-date { display: block; font-size: .9rem; color: #332a40; margin-top: 4px; letter-spacing: normal; }
.schedule th:nth-child(1) { width: 154px; }

.schedule .today { background: #e9f4ed; color: var(--primary-dark); }
.schedule tbody td { height: 91px; }
.schedule .weekend { background: #f7faf8; }
.schedule td.holiday { background: #f4f1f8; }
.schedule th.holiday, .mobile-day.holiday { background: #eee8f5; }
.holiday-label { display: block; margin-top: 5px; color: #593e78; font-size: .73rem; font-weight: 720; text-transform: none; letter-spacing: normal; }
.holiday-reason { display: block; margin-top: 3px; color: #4c405a; font-size: .73rem; line-height: 1.35; font-weight: 500; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.schedule .person { display: flex; align-items: center; gap: 8px; padding-top: 7px; font-size: .8rem; }
.cell-stack { display: grid; gap: 5px; }
.half-days { display: grid; grid-auto-rows: 1fr; gap: 4px; }
.half-day { min-width: 0; min-height: 48px; display: grid; align-content: start; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f7faf8; }
.half-day-label { padding-inline: 3px; font-size: .73rem; font-weight: 720; }
.half-day-empty { padding-inline: 3px; color: var(--muted); font-size: .72rem; }
.shift { width: 100%; border: 0; border-left: 3px solid #a48ad6; padding: 6px 6px 6px 7px; background: #f1eafb; color: #47336f; border-radius: 6px; text-align: left; font-size: .73rem; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.shift strong { font-size: .78rem; }.shift:hover { filter: brightness(.97); }
.shift-author { font-size: .69rem; font-weight: 580; }
.shift-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.shift-period { border: 1px solid currentColor; border-radius: 4px; padding-inline: 4px; font-size: .72rem; font-weight: 700; }
.shift.green { background: #e9f7ef; color: #235d46; border-color: #44a276; }.shift.amber { background: #fff2dd; color: #79500f; border-color: #dd9c30; }.shift.gray { background: #eeedf3; color: #504b5e; border-color: #9a95a5; }
.cell-add { width: 100%; border: 1px dashed transparent; border-radius: 5px; background: transparent; color: #847991; min-height: 24px; opacity: .52; }
.cell-add:hover, .cell-add:focus { border-color: #9ebdab; opacity: 1; background: #eff6f0; }
.empty { padding: 16px 17px; color: var(--muted); font-size: .88rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: 13px; }
.card { border: 1px solid var(--line); background: white; padding: 16px; border-radius: 11px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card .actions { margin-top: 3px; }.card a, .doc a { overflow-wrap: anywhere; }
.filters { margin: 0 0 15px; }
.list { display: grid; }.list > * + * { border-top: 1px solid var(--line); }
.list-item { display:flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 17px; }
.list-item > div { min-width: 0; }.list-item h3,.list-item p { overflow-wrap: anywhere; }
.list-item p { margin-top: 3px; }
.details { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 15px; padding: 0 17px 17px; margin: 0; }
.details dt { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }.details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.sign-detail { padding: 0 17px 15px; }.sign-detail + .sign-detail { border-top: 1px solid var(--line); padding-top: 15px; }
.sign-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.doc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 7px 0; font-size: .84rem; }
.doc > a { margin-right: auto; }.doc .btn { min-height: 30px; }
label { font-size: .82rem; font-weight: 690; display: grid; gap: 6px; }
input,select,textarea { width: 100%; min-width: 0; border: 1px solid #dcd7e6; border-radius: 7px; background: white; color: #302939; padding: 8px 9px; min-height: 36px; font-size: .9rem; }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--primary); }
label.check { display: flex; align-items: center; gap: 7px; }
textarea { min-height: 83px; resize: vertical; }.form-grid { display: grid; gap: 12px; }
.form-error { color: #a02b4b; font-size: .83rem; }.form-error:empty { display: none; }
.login-status { margin-top: 9px; padding: 9px 10px; border-radius: 7px; background: #e9f4ed; color: #24553f; font-size: .83rem; }
.access-status { margin: 6px 0 15px; }
dialog { width: min(94vw, 530px); max-height: 91dvh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 19px; color: #272330; box-shadow: 0 20px 70px #091b1055; }
dialog::backdrop { background: #101d1675; }.dialog-head { display:flex; gap: 10px; justify-content:space-between; align-items:center; margin-bottom:15px; }
#toast { position: fixed; right: 16px; bottom: 15px; z-index: 4; background: #1c3427; color: white; padding: 12px 16px; border-radius: 8px; font-size: .85rem; max-width: calc(100vw - 32px); }
#toast:empty { display: none; }
.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 16px; background: radial-gradient(ellipse at 75% 16%, #2b5b43, transparent 56%), #151d19; }
.login { padding: 27px; background: white; border-radius: 16px; width: min(100%, 440px); box-shadow: 0 14px 80px #0f091a66; }
.login .brand { margin: 0 0 23px; }.login .brand span { color: #00643f; }.login .brand img { filter: brightness(.08); }.login h1 { margin-bottom: 16px; }.login .chips { margin-top: 9px; }
.login .demo-help { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 13px; }
.login .google-login { width: 100%; margin-top: 10px; }
.mobile-week { display: none; }
.workshop-full .shell { display: block; }.workshop-full aside,.workshop-full .topbar { display: none; }.workshop-full main { max-width: none; }.workshop-full .card { padding: 22px; }.workshop-full .card-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,350px),1fr)); }
@media (max-width: 1120px) { .shell { grid-template-columns: 185px minmax(0,1fr); } .topbar,main { padding-left: 20px; padding-right: 20px; } aside { padding-left: 11px; padding-right: 11px; } }
@media (max-width: 960px) {
  .shell { display: block; } aside { z-index: 2; position: static; height: auto; min-height: unset; padding: 10px 13px; }
  aside .brand { display: flex; align-items: center; gap: 9px; margin: 3px 4px 11px; } aside .brand img { width: 138px; } .nav-label, .side-bottom { display: none; }
  nav { display:flex; overflow:auto; flex-wrap: nowrap; gap: 4px; padding-bottom: 3px; }
  .nav-button { width: auto; flex: none; padding: 7px 8px; font-size: .78rem; gap: 5px; }.nav-button .icon { width: 15px; height: 15px; }
  .topbar { height: 49px; padding: 0 13px; } main { padding: 18px 13px 25px; }.topbar .crumb span,.topbar .crumb .icon { display:none; }
}
@media (max-width: 640px) {
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 17px; }.page-heading p { font-size: .84rem; }
  .panel-header { padding: 12px; }.upcoming-grid { padding: 0 12px 12px; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); }
  .table-scroll { display: none; }.mobile-week { display: grid; }.mobile-day { padding: 10px 12px; border-top: 1px solid var(--line); }.mobile-day.today { background: #f0f7f2; }
  .mobile-day .shift { margin: 6px 0 0; font-size: .79rem; padding: 8px; }.mobile-day .shift strong { font-size: .85rem; }
  .legend { padding-left: 12px; gap: 8px; }.list-item { padding: 10px 12px; }
}

.schedule td.drop-target { background: #e2f1e7; box-shadow: inset 0 0 0 2px #5f9a7a; }

.storage-label { margin: 8px 0 5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.storage-label dl { margin: 0; }
.storage-label .btn { margin-top: 9px; text-align: left; }
.storage-label h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; }
.storage-parts { display: grid; gap: 0; padding: 0; margin: 5px 0 0; list-style: none; }
.storage-part { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.storage-part p { margin-top: 3px; }
.storage-label .storage-part .btn { margin: 0; }
.storage-label.stored { border-color: #bedac9; background: #e9f4ed; }
.storage-label dt { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 690; color: var(--muted); }
.storage-label .icon { width: 16px; height: 16px; }
.storage-label dd { margin: 4px 0 0 22px; color: #26392e; font-size: .93rem; font-weight: 720; overflow-wrap: anywhere; }
.storage-label.stored dd { color: var(--primary-dark); }

.team-picker { min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 8px; }
.team-picker legend { padding: 0 4px; font-size: .82rem; font-weight: 690; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 5px 10px; }
.team-grid .check { min-height: 34px; }
.period-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,152px),1fr)); gap: 8px; }
.period-options { gap: 13px; }

.week-jump { display: flex; align-items: center; gap: 5px; }
.shift-edit-label { font-weight: 720; text-decoration: underline; }



.shift.absence { background: #000; color: #fff; border-color: #000; }
.shift.absence .shift-edit-label { color: #fff; }
.dot.absence { background: #000; }
.planning-notes { padding: 12px 17px; border-top: 1px solid var(--line); font-size: .86rem; }
.planning-notes summary { cursor: pointer; font-weight: 700; }
.planning-notes p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }

.pose-group + .pose-group { border-top: 1px solid var(--line); }
.pose-group > .list-item { background: var(--tint); }

.access-add { margin-top: 12px; }
