/* OAKLIFE / OAK & LINEN — Warm Atelier */
:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --side: #edeae2;
  --surface: #fffefa;
  --border: #dedbd1;
  --text: #293632;
  --muted: #626b65;
  --accent: #426153;
  --accent-hover: #334d42;
  --accent-soft: #e3ebe4;
  --oak: #a47e54;
  --warn: #725025;
  --error: #9a3938;
  --shadow: 0 3px 18px rgba(45, 43, 35, .045);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; }
button,.btn {
  border: 1px solid #d3d4ca; background: #f6f5ef; color: var(--text);
  border-radius: 9px; padding: 10px 15px; cursor: pointer; display: inline-block;
  font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s;
}
button:hover,.btn:hover { background: #e9eae2; border-color: #b8c0b4; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--accent); border-color: var(--accent); color: #fffefa; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.danger { color: var(--error); background: #f7e8e3; border-color: #e8c6bf; }
.danger:hover { background: #f1dcd5; border-color: #dba89f; }
.full { width: 100%; margin-top: 18px; }
.shell { display: grid; grid-template-columns: 235px 1fr; min-height: 100vh; }
aside {
  background: var(--side); padding: 26px 16px; border-right: 1px solid #dcd8cd;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: 4px; margin: 8px 10px 35px; color: #263b32; }
.brand small { display: block; font-size: 9px; letter-spacing: 2px; color: #6c7165; margin-top: 8px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a { padding: 13px 14px; border-radius: 8px; color: #59645c; white-space: nowrap; transition: background .15s,color .15s; }
.nav a.active { background: #dce6da; color: #294839; border-left: 3px solid var(--accent); padding-left: 11px; font-weight: 650; }
.nav a:hover { background: #e1e2d9; color: #293c32; }
.nav a.active:hover { background: #dce6da; }
.aside-foot { margin-top: auto; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.aside-foot button { width: 100%; background: transparent; }
main { padding: 34px; max-width: 1450px; width: 100%; margin: 0 auto; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
h1 { font-size: 29px; font-weight: 670; letter-spacing: -.9px; margin: 0 0 6px; color: #25392f; }
h2 { font-size: 16px; font-weight: 670; margin: 0 0 12px; letter-spacing: -.2px; }
h3 { font-size: 14px; font-weight: 650; margin: 12px 0 6px; }
p { line-height: 1.6; margin: 8px 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.caps { font-size: 10px; letter-spacing: 1.4px; color: #6a7368; text-transform: uppercase; font-weight: 600; }
header .caps { color: #82653e; margin-bottom: 7px; }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 22px; border-radius: 13px; margin-bottom: 18px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.grid .panel { margin: 0 0 18px; }
.metric { font-size: 34px; font-weight: 700; letter-spacing: -1.2px; margin: 12px 0 4px; color: #345344; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px; overflow: hidden; box-shadow: var(--shadow); }
.thumb { width: 100%; height: 160px; object-fit: cover; background: #eae7de; border-radius: 8px; }
.row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.item { padding: 13px 0; border-bottom: 1px solid #e7e4dc; }
.item:last-child { border-bottom: 0; }
.pill { display: inline-block; border-radius: 40px; padding: 5px 10px; font-size: 11px; font-weight: 600; background: #eeece5; color: #575e54; border: 1px solid #e1ded4; }
.pill.good { background: #e1eee1; border-color: #cddfcd; color: #30583b; }
.pill.bad { background: #fae8e4; border-color: #ebc9c2; color: var(--error); }
.pill.wait { background: #f4ead9; border-color: #ead8ba; color: var(--warn); }
label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 550; color: #526056; }
input,select,textarea { background: #fbfaf6; border: 1px solid #d3d4ca; color: var(--text); border-radius: 8px; padding: 11px; width: 100%; min-width: 0; outline: none; }
input::placeholder,textarea::placeholder { color: #7a8076; }
input:focus,select:focus,textarea:focus { border-color: #809c86; box-shadow: 0 0 0 3px #deeadc; }
button:focus-visible,.btn:focus-visible,a:focus-visible { outline: 3px solid #9bb59d; outline-offset: 2px; }
textarea { resize: vertical; min-height: 85px; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=file]::file-selector-button { background: #e8ebe1; color: #304a3c; border: 1px solid #d0d9cc; border-radius: 6px; padding: 7px 10px; margin-right: 10px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.alert { padding: 14px; border-radius: 9px; background: #e0eddf; border: 1px solid #c9ddca; color: #2f5637; margin-bottom: 18px; }
.alert.error { background: #fae7e3; border-color: #e9c4bc; color: var(--error); }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 15% 15%,#e7e7dc 0,transparent 46%), var(--bg); }
.auth { max-width: 520px; width: 100%; background: var(--surface); border: 1px solid var(--border); padding: 30px; border-radius: 16px; box-shadow: 0 10px 38px rgba(45,43,35,.08); }
.auth .brand { margin: 0 0 25px; }
.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: 12px 8px; border-bottom: 1px solid #e6e3d9; vertical-align: top; }
th { color: var(--muted); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; background: #f7f6f0; }
td { font-size: 13px; }
tbody tr:hover { background: #f9f8f3; }
td a { color: #345c46; font-weight: 600; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.day { min-height: 82px; padding: 8px; background: #faf9f4; border: 1px solid #e3e0d7; border-radius: 8px; overflow: hidden; }
.day b { color: #626d61; font-size: 12px; }
.day a { display: block; background: #e4ece1; color: #354d3c; border-left: 2px solid #8b9e84; margin-top: 5px; font-size: 10px; padding: 5px; border-radius: 4px; }
.day a:hover { background: #d7e4d4; }
.day.empty { opacity: .35; }
.select-media { max-height: 280px; overflow: auto; background: #fbfaf6; border: 1px solid var(--border); border-radius: 8px; }
.select-media label { display: flex; align-items: center; padding: 8px; gap: 8px; border-bottom: 1px solid var(--border); margin: 0; }
.select-media label:last-child { border-bottom: 0; }
.select-media img { height: 46px; width: 46px; object-fit: cover; border-radius: 5px; }
.hint { padding: 12px; border-left: 3px solid #ab8a63; background: #f3efe5; color: #625b4f; margin: 12px 0; border-radius: 0 6px 6px 0; }
progress { accent-color: var(--accent); height: 8px; border-radius: 20px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e2dfd4; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
.wrap { overflow-wrap: anywhere; }
.inline { display: inline; }
.spaced { margin-top: 16px; }
footer { color: var(--muted); font-size: 12px; margin-top: 30px; }
@media(max-width:950px) {
  .shell { display: block; }
  aside { position: sticky; height: auto; padding: 10px; z-index: 5; }
  .brand { margin: 3px 7px 10px; font-size: 18px; }
  .brand small { font-size: 9px; margin-top: 3px; }
  .nav { display: flex; flex-direction: row; overflow: auto; }
  .nav a { font-size: 12px; padding: 9px; }
  .nav a.active { border-left: 0; padding-left: 9px; }
  .aside-foot { display: none; }
  main { padding: 18px; }
  .grid,.three,.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:580px) {
  .grid,.two,.three { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
  .calendar { gap: 3px; }
  .day { min-height: 55px; padding: 3px; }
  .day a { font-size: 9px; word-break: break-word; }
  .panel { padding: 15px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none !important; } }
