:root {
  color-scheme:light;
  --ink:#19352e; --muted:#51665c; --green:#155b48; --forest:#143f37;
  --line:#cbd9cd; --pale:#ecf3ec; --paper:#f4f6f2;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.6}
button,input,select {font:inherit;color:inherit}
button {border:1px solid #aec1b3;border-radius:8px;min-height:44px;background:white;padding:7px 14px;font-weight:650;cursor:pointer}
button:disabled {opacity:.55;cursor:default}
button:not(:disabled):hover {background:#eaf2eb}
:focus-visible {outline:3px solid #bb782b;outline-offset:2px}
input,select {display:block;width:100%;min-width:0;min-height:46px;margin-top:5px;padding:8px 10px;line-height:1.4;border:1px solid #a9baaf;border-radius:8px;background:white;font-size:16px}
select {
  -webkit-appearance:none;appearance:none;height:46px;padding-right:34px;
  background-image:linear-gradient(45deg,transparent 50%,var(--green) 50%),linear-gradient(135deg,var(--green) 50%,transparent 50%);
  background-position:calc(100% - 18px) center,calc(100% - 13px) center;
  background-size:5px 5px;background-repeat:no-repeat;
}
label {display:block;font-weight:650}
h1,h2,h3,p,fieldset,dl,dd {margin:0}
h1 {font-size:clamp(23px,4vw,32px);line-height:1.25;letter-spacing:-.025em}
h2 {font-size:19px;line-height:1.35}
h3 {font-size:15px;line-height:1.4}
.brand-bar {background:var(--forest);color:white}
.bar-inner {display:flex;align-items:center;gap:12px;max-width:800px;margin:auto;min-height:62px;padding:6px 20px}
.wordmark {display:flex;align-items:center;gap:9px;font-weight:780;white-space:nowrap;letter-spacing:.035em;font-size:17px}
.brand-mark {display:flex;align-items:center;gap:2px;padding:0 4px;transform:skew(-18deg)}
.brand-mark i {width:4px;height:16px;background:#bedb8c}
.brand-mark i:nth-child(2){height:21px}.brand-mark i:last-child{height:13px}
.brand-section {color:#e0ebde;font-size:13px;white-space:nowrap}
#access-logout {margin-left:auto;background:transparent;color:white;border-color:#839d8d;font-size:13px;padding:6px 10px}
main {max-width:800px;margin:0 auto;padding:18px 18px 56px}
.panel {background:white;border:1px solid var(--line);border-radius:14px;padding:clamp(15px,3.3vw,28px)}
.auth {max-width:425px;margin:clamp(10px,6vh,64px) auto}
.auth h1 {margin-bottom:22px}
.auth form>.primary {margin-top:18px}
.access-area {max-width:560px;margin:clamp(10px,4vh,36px) auto 0}
.access-area h1 {margin-bottom:20px;font-size:clamp(23px,5vw,31px)}
.roster-help {margin:4px 0 14px}
#roster-status:not(:empty) {margin-bottom:12px}
.store-list {display:grid;gap:10px}
.access-area .store-action {display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;
  min-height:66px;padding:13px 17px;text-align:left;border:1px solid var(--line);border-radius:11px;background:#fff}
.store-action strong {font-size:18px;overflow-wrap:anywhere}.store-action small {display:block;color:var(--muted);font-weight:500}
.access-area .store-action:hover {background:var(--pale)}
.store-action[data-store="karikuru"] {border-left:4px solid #426c5d}
.store-action[data-store="bluewave"] {border-left:4px solid #48628b}
.store-action[data-store="henpy"] {border-left:4px solid #926831}
.store-action[data-store="gbox"] {border-left:4px solid #975452}
.store-action[data-store="office-site"] {border-left:4px solid #705a82}
.action-arrow {color:var(--green);font-size:20px;line-height:1}
.back-link {border:0;padding:6px 3px;margin-bottom:12px;color:var(--green);background:transparent}
.primary,.primary:not(:disabled):hover {background:var(--green);color:white;border-color:var(--green)}
.primary:not(:disabled):hover {background:var(--forest)}
.full {width:100%}
.field-help,.empty {color:var(--muted);font-size:14px}
.error:not(:empty) {margin:10px 0;color:#873820;font-size:14px}
#notice:not(:empty){margin:0 0 14px;padding:9px 13px;border-radius:6px;background:#deeee1}
#notice.is-error:not(:empty){color:#873820;background:#fcece3}
#retry-load {margin-bottom:15px}
.identity {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.identity strong {font-size:21px;overflow-wrap:anywhere}.identity>div {min-width:0;flex:1}
.identity>span,.eyebrow {font-size:13px;color:var(--muted)}
.views {display:flex;gap:4px;background:#e3ebe3;border:1px solid var(--line);padding:3px;border-radius:9px;margin:0 0 14px}
.views button {flex:1;border:0;background:transparent}
.views button[aria-pressed="true"] {background:white;color:var(--green);box-shadow:0 1px 3px #18352e28}
.month-row {display:flex;align-items:center;gap:5px;margin:14px 0}
.month-row>button {padding:5px 10px}
.month-row>button:not(:last-child){font-size:23px;line-height:1;min-width:44px}
.month-label {position:relative;display:grid;place-items:center;min-height:44px;min-width:105px;font-size:17px;border-radius:6px}
.month-label input {position:absolute;inset:0;opacity:0;cursor:pointer;min-height:44px;margin:0}
.month-label:focus-within {outline:2px solid var(--green)}
#this-month {margin-left:auto}
.weekdays,.calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.calendar-help {font-size:14px;color:var(--muted);margin:0 0 8px}
.weekdays {font-size:12px;text-align:center;color:var(--muted);margin-bottom:5px}
.weekdays span:first-child{color:#975a58}.weekdays span:last-child{color:#476e90}
.calendar button {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:54px;border-radius:6px;border:1px solid #dbe4da;padding:2px;font-size:16px;font-variant-numeric:tabular-nums;line-height:1.35}
.calendar button.today {border-color:#6f9581}
.calendar button[aria-pressed="true"] {background:var(--green);border-color:var(--green);color:white}
.calendar small {font-weight:650;font-size:10px;white-space:nowrap}
.calendar .off-mark {white-space:normal;line-height:1.1}
.off-mark span {display:inline-block}
.calendar .wish-mark {color:#86591b}.calendar .fixed-mark {color:#226044}
.calendar button[aria-pressed="true"] small {color:white}
.selected-day {background:#f1f6ef;border-radius:10px;padding:14px;margin-top:13px}
.selected-day .primary {margin-top:10px}
.shift-list {padding:0;margin:0;list-style:none}
.shift-row {display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line);padding:10px 0}
.shift-row:first-child {border-top:0}
.shift-detail {min-width:0;flex:1}
.shift-main {display:block;font-weight:650;font-variant-numeric:tabular-nums}
.shift-origin {display:block;font-size:13px;color:var(--muted)}
.chip {font-size:12px;font-weight:650;display:inline-block;color:#815516;background:#fff3d7;border-radius:4px;padding:1px 5px;white-space:nowrap}
.chip.fixed {color:#1b5a40;background:#e0eee1}
.shift-row button {font-size:13px;padding:4px 10px}
#month-summary {margin-top:23px}
#month-summary h2 {margin-bottom:5px}
#team-shifts h3 {color:var(--muted);padding:10px 0 2px;border-top:1px solid var(--line)}
#team-shifts h3:first-child {border:0}
#team-status,#day-shifts>.empty,#month-shifts>.empty {padding:6px 0}
#edit-dialog,#actual-dialog {width:calc(100% - 24px);max-width:450px;max-height:90vh;max-height:90dvh;overflow:auto;color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:18px}
#edit-dialog::backdrop,#actual-dialog::backdrop {background:#0e281f80}
.editor-head {display:flex;align-items:center;justify-content:space-between;gap:8px}
.edit-context {color:var(--muted);margin:4px 0 12px}
fieldset {padding:10px 0;border:0}
legend {font-weight:700;color:var(--green)}
.date-time {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px}
.date-time label {font-size:13px}
.end-options {display:flex;gap:6px;margin-top:8px}
.end-options button {min-width:55px}
.edit-preview {background:var(--pale);border-radius:7px;padding:8px 10px;margin:5px 0 12px;font-weight:650}
.wish-options {display:grid;grid-template-columns:1fr 1fr;gap:6px}
.wish-options label {display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:4px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.wish-options label:has(input:checked) {background:var(--pale);border-color:var(--green);color:var(--green)}
.wish-options input {width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--green)}
#wish-start-fields.off-date {grid-template-columns:1fr}
@media(max-width:480px) {
  #edit-form .date-time {grid-template-columns:1fr;gap:6px}
}
body.private-covered #workspace,body.private-covered #edit-dialog,body.private-covered #actual-dialog,body.private-covered #notice {visibility:hidden}
body.access-covered main,body.access-covered #access-logout,body.access-covered #edit-dialog,body.access-covered #actual-dialog {visibility:hidden}
@media(max-width:370px){
  main {padding:12px 9px 38px}
  .bar-inner {gap:6px;padding:6px 10px}
  .wordmark {font-size:15px}.brand-section {font-size:12px}
  .panel {padding:12px}
  .calendar button {min-height:48px}
  .month-row {gap:3px}.month-row>button {padding:5px 8px}
}

.daily-heading {display:flex;align-items:end;gap:12px;justify-content:space-between;margin-bottom:12px}
.daily-heading label {font-size:13px}
.daily-heading input {width:150px}
#daily-status:not(:empty) {margin:10px 0}
#office-bank {display:grid;gap:10px}
#office-bank>label {margin:4px 0 -6px}
#bank-day {width:auto;min-width:155px;justify-self:start}
#bank-status:empty {display:none}
.bank-latest {background:var(--forest);border-radius:11px;padding:14px 16px;color:white}
.bank-latest p {font-size:14px}
.bank-latest strong {display:block;font-size:clamp(25px,7vw,34px);overflow-wrap:anywhere}
.bank-record {color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}
.bank-record strong {color:var(--ink);margin-left:8px;overflow-wrap:anywhere}
.bank-input {display:flex;align-items:stretch;gap:6px;margin:6px 0}
.bank-input input {flex:1;margin:0}
#bank-form .primary {margin-top:15px}
#access-store .views button {padding-inline:4px}
.daily-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.daily-summary>div {padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.daily-summary dt {font-size:13px;color:var(--muted)}
.daily-summary dd {font-size:clamp(16px,4vw,21px);font-weight:700;overflow-wrap:anywhere}
.daily-summary>div:first-child {grid-column:1/-1;background:var(--forest);color:white}
.daily-summary>div:first-child dt {color:#e4eddf}
.daily-summary+.field-help {margin:6px 0 14px}
.daily-actions,.daily-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.daily-form {margin-top:12px}
.daily-form h3 {font-size:18px}
.daily-form label {font-size:14px}
.daily-form fieldset {min-width:0;padding:12px 0}
.daily-form fieldset>label+label,#sale-reason-label {margin-top:8px}
.daily-form #expense-details {padding:0 0 14px}
.receipt-picker {border-top:1px solid var(--line);padding-top:12px}
#receipt-label {font-weight:700}
#receipt-label small {display:inline-block;margin-left:5px;font-weight:500;color:var(--muted)}
.photo-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.photo-choice {position:relative;display:grid;place-items:center;min-height:46px;border:1px solid #91aa9b;border-radius:8px;color:var(--green);cursor:pointer}
.photo-choice input {position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.photo-choice:focus-within {outline:3px solid #bb782b;outline-offset:2px}
#receipt-preview {display:block;max-width:100%;max-height:280px;margin:12px auto 0;object-fit:contain}
#receipt-status:not(:empty) {margin:8px 0;font-size:14px}
.cancel-expense {margin-top:8px}
.daily-expense-list {margin-top:22px}
.daily-expense-list h3 {font-size:17px}
#daily-expenses {padding:0;margin:6px 0 0;list-style:none}
#daily-expenses li {padding:11px 0;border-top:1px solid var(--line)}
.expense-line {display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.expense-line strong {overflow-wrap:anywhere}
.expense-line b {white-space:nowrap;font-variant-numeric:tabular-nums}
.expense-meta {font-size:13px;color:var(--muted);margin:2px 0 6px}

#actual-fields label{display:block;margin:8px 0}
#actual-breaks fieldset{border-top:1px solid var(--line)}
