/* Built-in apps: Notes, Labour Calculator, About Minutechbuilds. */

.app-window[data-window="notes"] { width: 900px; height: 580px; }
.app-window[data-window="labour"] { width: 860px; height: 620px; }

/* ---------- Notes ---------- */
.nt-list { width: 250px; padding: 10px; gap: 8px; }
.app-window .window-sidebar.nt-list button.nt-new {
  flex: none;
  justify-content: center;
  min-height: 36px;
  color: #fff;
  font-weight: 600;
  background: var(--lg-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px rgba(10, 132, 255, .35);
}
.app-window .window-sidebar.nt-list button.nt-new:hover { background: var(--lg-accent); filter: brightness(1.08); }
.nt-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.app-window .window-sidebar.nt-list .nt-item {
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
}
.nt-item strong { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-item small { font-size: 11.5px; color: var(--lg-text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-window .window-sidebar.nt-list .nt-item[aria-current="true"] { background: var(--lg-accent-soft); box-shadow: inset 0 0 0 .5px rgba(10, 132, 255, .22); }
.nt-editor { display: flex; flex-direction: column; gap: 8px; padding: 14px 24px 8px; }
.nt-title {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lg-text);
  font: 680 26px/1.2 var(--lg-font);
  letter-spacing: -.02em;
}
.nt-body {
  flex: 1;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--lg-text);
  font: 400 14px/1.6 var(--lg-font);
}
.nt-title::placeholder, .nt-body::placeholder { color: var(--lg-text-3); }
.nt-title:focus-visible, .nt-body:focus-visible { box-shadow: none; }
.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: .5px solid var(--lg-separator); }
.nt-meta { margin: 0; font-size: 11.5px; color: var(--lg-text-3); }
.nt-empty { margin: auto; text-align: center; color: var(--lg-text-2); }

/* ---------- Labour Calculator ---------- */
.lc-main { padding: 18px 26px 22px; }
.lc-main h1 { margin: 2px 0 6px; }
.lc-intro { max-width: 62ch; color: var(--lg-text-2); margin: 0 0 18px; }
.lc-layout { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.lc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; padding: 18px; border-radius: 20px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.lc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-field > span { font-size: 12px; font-weight: 600; color: var(--lg-text-2); }
.lc-field small { font-size: 11px; line-height: 1.3; color: var(--lg-text-3); }
.lc-field input, .lc-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--os-field);
  color: var(--lg-text);
  font: 500 15px var(--lg-font);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 .5px var(--os-card-line);
}
.lc-field input:focus-visible, .lc-field select:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 1px; }
.lc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--lg-sheen), var(--lg-fill-regular); box-shadow: var(--lg-rim), var(--lg-shadow-sm); }
.lc-label { font-size: 11.5px; font-weight: 600; color: var(--lg-text-3); }
.lc-value { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-card[data-lc-out="pct"] .lc-value { color: var(--lg-accent); }
.lc-verdict { grid-column: 1 / -1; margin: 4px 2px 0; font-size: 13px; color: var(--lg-text-2); }

/* ---------- About Minutechbuilds ---------- */
.osabout { display: flex; flex-direction: column; align-items: flex-start; }
.osabout-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #fff;
  font: 700 28px var(--lg-font);
  letter-spacing: -.04em;
  background: linear-gradient(150deg, #5da9ff, #1f5fd6);
  box-shadow: var(--lg-rim), 0 8px 18px rgba(10, 60, 160, .35);
}
.osabout-counts { font-weight: 600; color: var(--lg-accent); }

@media (max-width: 760px) {
  .lc-layout { grid-template-columns: 1fr; }
  .lc-form { grid-template-columns: 1fr; }
  .nt-list { width: auto; }
}
