/* ==========================================================================
   LIGHT UP OS — Components
   ========================================================================== */

/* ---------------- Card ---------------- */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  transition:box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card--hover:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
  border-color:var(--border-strong);
}
.card--pad{ padding:var(--sp-6); }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:40px;
  padding:0 18px;
  border-radius:var(--r-md);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:-0.01em;
  transition:all var(--dur-fast) var(--ease);
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; }

.btn-primary{
  background:var(--accent);
  color:var(--accent-contrast);
}
.btn-primary:hover{ background:var(--accent-hover); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-primary:active{ transform:translateY(0); }

.btn-secondary{
  background:var(--surface-2);
  color:var(--text-primary);
  border:1px solid var(--border);
}
.btn-secondary:hover{ background:var(--surface-hover); border-color:var(--border-strong); }

.btn-ghost{
  background:transparent;
  color:var(--text-secondary);
}
.btn-ghost:hover{ background:var(--surface-hover); color:var(--text-primary); }

.btn-danger{ background:var(--red); color:#fff; }
.btn-danger:hover{ filter:brightness(1.06); }

.btn-sm{ height:32px; padding:0 13px; font-size:12.5px; border-radius:var(--r-sm); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:0.45; cursor:not-allowed; pointer-events:none; }

/* ---------------- Badges / Pills ---------------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  font-weight:700;
  padding:4px 10px;
  border-radius:var(--r-full);
  text-transform:none;
  letter-spacing:0.01em;
}
.badge-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge-green{ background:var(--green-bg); color:var(--green); }
.badge-red{ background:var(--red-bg); color:var(--red); }
.badge-amber{ background:var(--amber-bg); color:var(--amber); }
.badge-blue{ background:var(--blue-bg); color:var(--blue); }
.badge-neutral{ background:var(--surface-2); color:var(--text-secondary); border:1px solid var(--border); }

/* ---------------- Progress Bar ---------------- */
.progress{
  width:100%;
  height:7px;
  border-radius:var(--r-full);
  background:var(--surface-2);
  overflow:hidden;
}
.progress__fill{
  height:100%;
  border-radius:var(--r-full);
  background:var(--text-primary);
  transition:width var(--dur-slow) var(--ease);
}
.progress__fill.is-green{ background:var(--green); }
.progress__fill.is-amber{ background:var(--amber); }

/* ---------------- Avatar ---------------- */
.avatar{
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
  letter-spacing:0.01em;
}
.avatar-sm{ width:28px; height:28px; font-size:11px; }
.avatar-md{ width:38px; height:38px; font-size:13px; }
.avatar-lg{ width:56px; height:56px; font-size:18px; }
.avatar-xl{ width:72px; height:72px; font-size:24px; }
.avatar-stack{ display:flex; }
.avatar-stack .avatar{ border:2px solid var(--surface); margin-left:-9px; }
.avatar-stack .avatar:first-child{ margin-left:0; }

/* ---------------- Stat Card ---------------- */
.stat-card{
  padding:var(--sp-5) var(--sp-6);
  display:flex;
  flex-direction:column;
  gap:var(--sp-2);
}
.stat-card__top{ display:flex; align-items:center; justify-content:space-between; }
.stat-card__icon{
  width:34px; height:34px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-2);
  color:var(--text-secondary);
}
.stat-card__icon svg{ width:17px; height:17px; }
.stat-card__value{ font-size:30px; font-weight:700; letter-spacing:-0.02em; }
.stat-card__label{ font-size:13px; color:var(--text-secondary); font-weight:500; }
.stat-card__trend{ font-size:12px; font-weight:600; }

/* ---------------- Section headers ---------------- */
.section-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:var(--sp-4);
}
.section-head h3{ display:flex; align-items:center; gap:8px; }
.link-more{
  font-size:12.5px; font-weight:600; color:var(--text-secondary);
  display:flex; align-items:center; gap:3px;
}
.link-more:hover{ color:var(--text-primary); }
.link-more svg{ width:14px; height:14px; }

/* ---------------- List row ---------------- */
.row{
  display:flex; align-items:center; gap:var(--sp-4);
  padding:var(--sp-4);
  border-bottom:1px solid var(--border);
  transition:background var(--dur-fast) var(--ease);
}
.row:last-child{ border-bottom:none; }
.row:hover{ background:var(--surface-2); }

/* ---------------- Empty state ---------------- */
.empty{
  text-align:center;
  padding:var(--sp-9) var(--sp-5);
  color:var(--text-tertiary);
}
.empty svg{ width:40px; height:40px; margin:0 auto var(--sp-3); opacity:0.5; }
.empty h4{ color:var(--text-secondary); margin-bottom:4px; }
.empty p{ font-size:13px; }

/* ---------------- Tabs ---------------- */
.tabs{
  display:inline-flex;
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:3px;
  border-radius:var(--r-md);
  gap:2px;
}
.tab{
  padding:7px 16px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  color:var(--text-secondary);
  transition:all var(--dur-fast) var(--ease);
}
.tab.is-active{
  background:var(--surface);
  color:var(--text-primary);
  box-shadow:var(--shadow-sm);
}
.tab:hover:not(.is-active){ color:var(--text-primary); }

/* ---------------- Forms ---------------- */
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:var(--sp-5); }
.field label{ font-size:13px; font-weight:600; color:var(--text-primary); }
.field .hint{ font-size:12px; color:var(--text-tertiary); font-weight:400; }

.input, .textarea, .select{
  border:1px solid var(--border);
  background:var(--surface-2);
  border-radius:var(--r-md);
  padding:11px 14px;
  font-size:13.5px;
  outline:none;
  transition:border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  width:100%;
}
.input:focus, .textarea:focus, .select:focus{
  border-color:var(--text-primary);
  background:var(--surface);
}
.textarea{ min-height:110px; line-height:1.55; font-family:inherit; }
.textarea.lg{ min-height:150px; }

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-4); }

.chip-group{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding:7px 14px;
  border-radius:var(--r-full);
  border:1px solid var(--border);
  background:var(--surface-2);
  font-size:12.5px;
  font-weight:600;
  color:var(--text-secondary);
  transition:all var(--dur-fast) var(--ease);
}
.chip:hover{ border-color:var(--border-strong); }
.chip.is-selected{
  background:var(--text-primary);
  color:var(--bg);
  border-color:var(--text-primary);
}

/* ---------------- Modal ---------------- */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(17,17,17,0.4);
  backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center;
  z-index:100;
  padding:var(--sp-5);
  opacity:0;
  animation:fadeIn var(--dur-base) var(--ease) forwards;
}
.modal{
  background:var(--surface);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-modal);
  width:100%;
  max-width:480px;
  max-height:88vh;
  display:flex;
  flex-direction:column;
  transform:translateY(14px) scale(0.98);
  opacity:0;
  animation:modalIn var(--dur-base) var(--ease) forwards;
}
.modal.modal-lg{ max-width:640px; }
@keyframes fadeIn{ to{ opacity:1; } }
@keyframes modalIn{ to{ opacity:1; transform:translateY(0) scale(1); } }

.modal__head{
  display:flex; align-items:flex-start; justify-content:space-between;
  padding:var(--sp-6) var(--sp-6) var(--sp-4);
}
.modal__title{ font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.modal__subtitle{ font-size:13px; color:var(--text-secondary); margin-top:3px; }
.modal__body{ padding:0 var(--sp-6) var(--sp-5); overflow-y:auto; }
.modal__foot{
  padding:var(--sp-5) var(--sp-6);
  border-top:1px solid var(--border);
  display:flex; justify-content:flex-end; gap:10px;
}
.modal__close{
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-tertiary);
  flex-shrink:0;
}
.modal__close:hover{ background:var(--surface-2); color:var(--text-primary); }
.modal__close svg{ width:16px; height:16px; }

/* ---------------- Toasts ---------------- */
.toast-stack{
  position:fixed;
  bottom:var(--sp-6);
  right:var(--sp-6);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:200;
}
.toast{
  display:flex; align-items:center; gap:11px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-lg);
  padding:13px 18px;
  border-radius:var(--r-md);
  min-width:280px;
  max-width:360px;
  transform:translateX(20px);
  opacity:0;
  animation:toastIn var(--dur-base) var(--ease) forwards;
}
@keyframes toastIn{ to{ opacity:1; transform:translateX(0); } }
.toast.is-leaving{ animation:toastOut var(--dur-fast) var(--ease) forwards; }
@keyframes toastOut{ to{ opacity:0; transform:translateX(20px) scale(0.96); } }
.toast__icon{
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.toast__icon svg{ width:15px; height:15px; }
.toast__icon.success{ background:var(--green-bg); color:var(--green); }
.toast__icon.info{ background:var(--blue-bg); color:var(--blue); }
.toast__icon.warn{ background:var(--amber-bg); color:var(--amber); }
.toast__text{ font-size:13px; font-weight:600; line-height:1.4; }
.toast__sub{ font-size:12px; color:var(--text-secondary); font-weight:400; margin-top:1px; }

/* ---------------- Notifications panel ---------------- */
.notif-panel{
  position:absolute;
  top:56px; right:0;
  width:340px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
  z-index:90;
  overflow:hidden;
  transform:translateY(8px);
  opacity:0;
  animation:modalIn var(--dur-fast) var(--ease) forwards;
}
.notif-panel__head{
  padding:var(--sp-4) var(--sp-5);
  border-bottom:1px solid var(--border);
  font-weight:700; font-size:14px;
}
.notif-item{
  display:flex; gap:11px; padding:var(--sp-4) var(--sp-5);
  border-bottom:1px solid var(--border);
  cursor:pointer;
}
.notif-item:last-child{ border-bottom:none; }
.notif-item:hover{ background:var(--surface-2); }
.notif-item__dot{ width:8px; height:8px; border-radius:50%; background:var(--text-primary); margin-top:6px; flex-shrink:0; }
.notif-item.is-read .notif-item__dot{ background:transparent; }
.notif-item__text{ font-size:13px; line-height:1.45; }
.notif-item__time{ font-size:11.5px; color:var(--text-tertiary); margin-top:3px; }

/* ---------------- Checkbox / Task row ---------------- */
.check{
  width:21px; height:21px; border-radius:7px;
  border:1.5px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition:all var(--dur-fast) var(--ease);
  color:transparent;
}
.check:hover{ border-color:var(--text-primary); }
.check.is-checked{ background:var(--text-primary); border-color:var(--text-primary); color:var(--bg); }
.check svg{ width:13px; height:13px; }

.task-row{
  display:flex; align-items:center; gap:var(--sp-4);
  padding:14px var(--sp-4);
  border-bottom:1px solid var(--border);
  transition:background var(--dur-fast) var(--ease);
}
.task-row:last-child{ border-bottom:none; }
.task-row:hover{ background:var(--surface-2); }
.task-row__title{ font-size:13.5px; font-weight:600; }
.task-row__title.is-done{ text-decoration:line-through; color:var(--text-tertiary); }
.task-row__meta{ font-size:12px; color:var(--text-tertiary); margin-top:3px; display:flex; gap:8px; align-items:center; }

/* ---------------- Misc ---------------- */
.divider{ height:1px; background:var(--border); border:none; margin:var(--sp-5) 0; }
.skeleton{ background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-hover) 37%,var(--surface-2) 63%); background-size:400% 100%; animation:shimmer 1.4s ease infinite; border-radius:var(--r-md); }
@keyframes shimmer{ 0%{ background-position:100% 50%;} 100%{ background-position:0 50%;} }

.file-chip{
  display:flex; align-items:center; gap:9px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  font-size:12.5px;
  font-weight:600;
  background:var(--surface-2);
}
.file-chip svg{ width:15px; height:15px; color:var(--text-tertiary); }

.stage-track{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.stage-dot{ width:7px; height:7px; border-radius:50%; background:var(--border-strong); }
.stage-dot.is-done{ background:var(--text-primary); }
.stage-dot.is-current{ background:var(--blue); width:9px; height:9px; }

.fade-in{ animation:pageIn var(--dur-slow) var(--ease); }
@keyframes pageIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

/* ---------------- Login ---------------- */
.login-screen{
  min-height:100vh;
  /* Column: the language switch sits above the card. */
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:var(--sp-6);
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--text-primary) 5%, transparent), transparent 40%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--text-primary) 5%, transparent), transparent 40%),
    var(--bg);
}
.login-card{
  width:100%; max-width:460px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-lg);
  padding:var(--sp-8) var(--sp-7);
  animation:modalIn var(--dur-slow) var(--ease);
}
.login-card__brand{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:var(--sp-7); text-align:center; }
.login-card__brand h1{ font-size:20px; }
.login-card__brand p{ font-size:13px; }

.login-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  max-height:52vh;
  overflow-y:auto;
  padding:2px;
}
.login-person{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:var(--sp-5) var(--sp-3);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--surface-2);
  text-align:center;
  transition:all var(--dur-fast) var(--ease);
}
.login-person:hover{ border-color:var(--text-primary); background:var(--surface); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.login-person__name{ font-size:12.5px; font-weight:700; }
.login-person__role{ font-size:11px; color:var(--text-tertiary); }

.login-pin{
  text-align:center;
  font-size:24px;
  letter-spacing:10px;
  font-weight:700;
  padding:14px;
}

@keyframes shake{
  0%,100%{ transform:translateX(0); }
  20%{ transform:translateX(-8px); }
  40%{ transform:translateX(8px); }
  60%{ transform:translateX(-5px); }
  80%{ transform:translateX(5px); }
}

@media (max-width:480px){
  .login-card{ padding:var(--sp-6) var(--sp-5); }
  .login-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ==========================================================================
   Time tracking — timer card, top-bar pill, day strip, meters
   ========================================================================== */
.timer-card__label{
  display:flex; align-items:center; gap:8px;
  font-size:11.5px; font-weight:700; color:var(--text-tertiary);
  text-transform:uppercase; letter-spacing:0.05em; margin-bottom:var(--sp-4);
}
.timer-card__clock{
  font-size:44px; font-weight:700; letter-spacing:-0.03em;
  font-variant-numeric:tabular-nums; line-height:1.05; margin-bottom:var(--sp-2);
}
.timer-card__what{ font-size:14px; font-weight:600; margin-bottom:4px; }
.timer-card.is-running{ border-color:var(--green); box-shadow:0 0 0 3px var(--green-bg); }

.live-dot{
  width:8px; height:8px; border-radius:50%; background:var(--green); flex-shrink:0;
  animation:livePulse 1.6s var(--ease) infinite;
}
@keyframes livePulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
@media (prefers-reduced-motion: reduce){ .live-dot{ animation:none; } }

.timer-pill{
  display:inline-flex; align-items:center; gap:8px;
  height:36px; padding:0 6px 0 12px; max-width:280px;
  border:1px solid var(--green); border-radius:var(--r-full);
  background:var(--green-bg); color:var(--text-primary);
  font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums;
}
.timer-pill__what{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-secondary); font-weight:500; }
.timer-pill__stop{
  width:26px; height:26px; flex-shrink:0; border:none; border-radius:50%;
  display:grid; place-items:center; background:var(--text-primary); color:var(--surface); cursor:pointer;
}
.timer-pill__stop svg{ width:11px; height:11px; }
.timer-pill__open{ display:flex; align-items:center; gap:8px; min-width:0; background:none; border:none; padding:0; color:inherit; font:inherit; cursor:pointer; }

.btn-timer{
  width:32px; height:32px; flex-shrink:0; padding:0;
  display:grid; place-items:center;
  border:1px solid var(--border); border-radius:50%;
  background:var(--surface); color:var(--text-secondary); cursor:pointer;
  transition:all var(--dur-fast) var(--ease);
}
.btn-timer:hover{ border-color:var(--text-primary); color:var(--text-primary); }
.btn-timer svg{ width:13px; height:13px; }
.btn-timer.is-running{ border-color:var(--green); background:var(--green-bg); color:var(--green); }

.day-strip{ display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.day-strip__day{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.day-strip__bar{
  width:100%; max-width:44px; height:84px; border-radius:var(--r-sm);
  background:var(--surface-2); display:flex; align-items:flex-end; overflow:hidden;
}
.day-strip__bar span{ display:block; width:100%; background:var(--text-primary); border-radius:var(--r-sm) var(--r-sm) 0 0; transition:height var(--dur-slow) var(--ease); }
.day-strip__hours{ font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.day-strip__label{ font-size:11px; color:var(--text-tertiary); }
.day-strip__day.is-today .day-strip__label{ color:var(--text-primary); font-weight:700; }

.meter{ height:6px; border-radius:var(--r-full); background:var(--surface-2); overflow:hidden; }
.meter span{ display:block; height:100%; background:var(--text-primary); border-radius:inherit; }

.data-table{ width:100%; border-collapse:collapse; font-size:13px; }
.data-table th{
  text-align:left; padding:8px 10px; font-size:11px; font-weight:700;
  color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.04em;
}
.data-table td{ padding:10px; border-top:1px solid var(--border); vertical-align:middle; }

/* Sync status in the sidebar footer */
.sync-state{ display:flex; align-items:center; gap:7px; padding:0 var(--sp-3) var(--sp-3); font-size:11.5px; color:var(--text-tertiary); }
.sync-state i{ width:7px; height:7px; border-radius:50%; background:var(--green); flex-shrink:0; }
.sync-state.is-saving i{ background:var(--amber); }
.sync-state.is-offline i, .sync-state.is-error i{ background:var(--red); }
.sync-state.is-offline, .sync-state.is-error{ color:var(--red); }

/* Notice banner (e.g. "choose your own PIN") — sits above the page content,
   so pages re-rendering themselves don't remove it. */
.notice-slot{ max-width:var(--content-max); width:100%; margin:0 auto; padding:0 var(--sp-7); }
.notice-slot:not(:empty){ padding-top:var(--sp-6); }
.notice-slot:not(:empty) + .content{ padding-top:var(--sp-5); }
@media (max-width:980px){ .notice-slot{ padding:0 var(--sp-5); } .notice-slot:not(:empty){ padding-top:var(--sp-5); } }
@media (max-width:640px){ .notice-slot{ padding:0 var(--sp-4); } .notice-slot:not(:empty){ padding-top:var(--sp-4); } }
.notice{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:12px 16px;
  border:1px solid var(--amber); border-radius:var(--r-md);
  background:var(--amber-bg); font-size:13px;
}
.notice svg{ color:var(--amber); flex-shrink:0; }
.notice__text{ flex:1; min-width:200px; }

/* Small stat tiles stay two-across on phones instead of one tall column. */
@media (max-width:980px){ .grid.grid-stats{ grid-template-columns:repeat(2,1fr); } }

@media (max-width:640px){
  .timer-pill__what{ display:none; }
  .timer-card__clock{ font-size:36px; }
  .day-strip{ gap:4px; }
  .day-strip__bar{ height:64px; }
}

/* ==========================================================================
   Sign in — shared by the Cognito screen and the local test copy
   ========================================================================== */
.login-lede{
  font-size:13.5px; color:var(--text-secondary); text-align:center;
  margin:0 0 var(--sp-5); line-height:1.55;
}
.btn-lg{ height:48px; font-size:14.5px; }
.login-error{ color:var(--red); font-size:12.5px; text-align:center; min-height:18px; margin-top:10px; }
.login-foot{
  margin-top:var(--sp-5); padding-top:var(--sp-4); border-top:1px solid var(--border);
  display:flex; flex-direction:column; gap:6px;
}
.login-foot p{ font-size:11.5px; line-height:1.5; color:var(--text-tertiary); margin:0; text-align:center; }

/* ==========================================================================
   Project files — the studio's document library on a project page
   ========================================================================== */
.file-folder{ margin-bottom:var(--sp-5); }
.file-folder__name{
  display:flex; align-items:center; gap:7px;
  font-size:11.5px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
  color:var(--text-tertiary); padding-bottom:8px; border-bottom:1px solid var(--border); margin-bottom:4px;
}
.file-folder__name span{ color:var(--text-tertiary); font-weight:500; }

.file-row{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px;
  padding:11px 4px; border-bottom:1px solid var(--border);
}
/* The name keeps the room it needs; the buttons drop to their own line
   rather than squeezing it to nothing. */
.file-row__main{ flex:1 1 240px; min-width:0; }
.file-row__actions{ margin-left:auto; }
.file-row:last-child{ border-bottom:none; }
.file-row:hover{ background:var(--surface-2); }
.file-row.is-archived{ opacity:0.6; }
.file-row__icon{
  width:34px; height:34px; display:grid; place-items:center; flex-shrink:0;
  border:1px solid var(--border); border-radius:var(--r-sm); color:var(--text-secondary); background:var(--surface);
}
.file-row__name{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-row__meta{ font-size:11.5px; color:var(--text-tertiary); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-row__state{ flex-shrink:0; }
.file-row__actions{ display:flex; gap:6px; flex-shrink:0; }

.file-archive{ margin-top:var(--sp-4); border-top:1px solid var(--border); padding-top:var(--sp-3); }
.file-archive summary{
  cursor:pointer; font-size:12px; color:var(--text-tertiary); padding:4px 0; list-style:none;
}
.file-archive summary::-webkit-details-marker{ display:none; }
.file-archive summary::before{ content:'▸ '; }
.file-archive[open] summary::before{ content:'▾ '; }

@media (max-width:900px){
  .file-row__actions{ margin-left:0; flex-wrap:wrap; }
}

/* Language switch (EN · RU · ՀԱՅ) */
.lang-switch{ display:flex; border:1px solid var(--border); border-radius:var(--r-sm); overflow:hidden; }
/* On the sign-in screens the switch sits above the card, so a person can
   pick their language before they can reach the top bar. */
.lang-switch--login{ margin:0 auto var(--sp-5); width:max-content; background:var(--surface); }
.lang-switch__btn{
  border:0; background:transparent; color:var(--text-tertiary);
  padding:6px 9px; font-size:11px; font-weight:700; letter-spacing:0.03em; cursor:pointer;
  transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch__btn:hover{ color:var(--text-primary); background:var(--surface-2); }
.lang-switch__btn.is-active{ background:var(--text-primary); color:var(--text-inverse); }
@media (max-width:640px){ .lang-switch{ display:none; } .lang-switch--login{ display:flex; } }

/* Photo avatars sit in the same circle as the initials */
.avatar--photo{ object-fit:cover; display:block; padding:0; border:1px solid var(--border); }

/* Capacity heatmap — one cell per week, per person */
.heat{ display:flex; gap:3px; }
.heat__cell{ width:14px; height:22px; border-radius:2px; background:var(--surface-2); }
.heat--ok{ background:var(--green); opacity:0.75; }
.heat--tight{ background:var(--amber); }
.heat--over{ background:var(--red); }
.heat--off{ background:var(--border-strong); }
