/* Workday Dashboard: brand black / white / gold, glass surfaces */
:root {
  --bg: #F5F3EE;
  --ink: #141414;
  --muted: #6A675F;
  --line: rgba(20, 20, 20, 0.08);
  --gold: #F2A900;
  --gold-soft: #FFE7A3;
  --gold-deep: #8A5A00;
  --dark: #121212;
  --now: #E5484D;
  --next: #F2A900;
  --later: #8B8A85;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --blur: blur(20px) saturate(170%);
  --shadow: 0 10px 34px -14px rgba(20, 20, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --display: "Plus Jakarta Sans", Inter, -apple-system, "Segoe UI", sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(255, 201, 51, 0.35), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(242, 169, 0, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1.2rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem; transition: transform 0.2s var(--ease), filter 0.2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(242, 169, 0, 0.8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.linklike { text-decoration: underline; text-underline-offset: 3px; font-size: 0.82rem; color: var(--muted); }
.linklike:hover { color: var(--ink); }
.danger { color: #B4373B; }

/* boot */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--dark); z-index: 50; }
.boot-mark { width: 64px; height: 64px; animation: bootPulse 1.2s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(0.9); opacity: 0.7; } }

/* ---------------- sign in ---------------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(700px 500px at 50% 0%, rgba(242, 169, 0, 0.25), transparent 70%), var(--dark); }
.auth-card {
  width: 100%; max-width: 420px; text-align: center; color: #fff;
  padding: 2.4rem 2rem 1.8rem; border-radius: 26px;
  background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.auth-mark { width: 58px; height: 58px; margin-bottom: 1rem; }
.auth-eyebrow { color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.auth h1 { font-size: 2rem; margin: 0.3rem 0 0.5rem; }
.auth-lead { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.auth-lead b { color: #fff; }
.auth-form { display: grid; gap: 0.6rem; margin-top: 1.6rem; text-align: left; }
.auth-form label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }
.auth-form input { padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 16px; }
.auth-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.25); }
#authCode { letter-spacing: 0.4em; text-align: center; font-size: 1.3rem; font-weight: 600; }
.auth-fine { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); line-height: 1.5; }
.auth-fine .linklike { color: rgba(255, 255, 255, 0.75); font-size: 0.76rem; }
.auth-status { min-height: 1.2em; margin-top: 0.8rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.auth-status.is-err { color: #FF8A80; }
.auth-quote { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--gold); font-size: 0.85rem; font-style: italic; }
.auth-back { display: inline-block; margin-top: 1rem; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; text-decoration: none; }

/* ---------------- app layout ---------------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.3rem 1rem; background: var(--dark); color: #fff;
}
.side-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 0 0.4rem; }
.side-brand svg { width: 34px; height: 34px; }
.embed-only { display: none; }
.is-embed [data-hide-embed] { display: none !important; }
.is-embed .embed-only { display: flex; }
.side-nav { display: grid; gap: 2px; }
.side-nav button { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border-radius: 10px; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; font-weight: 500; text-align: left; }
.side-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-nav button.is-active { background: rgba(242, 169, 0, 0.16); color: #fff; }
.side-nav .count { margin-left: auto; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-day { background: var(--gold); } .dot-now { background: var(--now); } .dot-next { background: var(--next); }
.dot-later { background: var(--later); } .dot-fup { background: #4C8DF6; } .dot-tmrw { background: #A472F0; } .dot-done { background: #3DB46D; }
.side-foot { margin-top: auto; display: grid; gap: 0.9rem; }
.side-user { display: grid; gap: 0.2rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); word-break: break-all; padding: 0 0.3rem; }
.side-user .linklike { justify-self: start; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }

.main { padding: 1.8rem clamp(1rem, 4vw, 3rem) 6rem; max-width: 980px; width: 100%; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.main-date { color: var(--muted); font-size: 0.85rem; }
.main-head h1 { font-size: 1.9rem; }
.progress { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg, .ring { fill: none; stroke-width: 3.2; }
.ring-bg { stroke: rgba(20, 20, 20, 0.08); }
.ring { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 0.6s var(--ease); }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }

section { margin-bottom: 2rem; }
.sec-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.sec-head h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.step { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 0.75rem; font-weight: 700; }
.saved { margin-left: auto; font-size: 0.75rem; color: var(--muted); }

/* plan */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.plan-card { padding: 0.9rem; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 231, 163, 0.75), rgba(255, 255, 255, 0.55)); border: 1px solid var(--glass-border); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.plan-card h3 { font-size: 0.82rem; margin-bottom: 0.6rem; }
.plan-card input { width: 100%; padding: 0.5rem 0.6rem; margin-top: 0.35rem; border: 1px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, 0.8); font-size: 0.88rem; }
.plan-card input:focus { outline: none; border-color: var(--gold); }

/* quick add */
.quick { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quick:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.18), var(--shadow); }
.quick-plus { color: var(--gold-deep); font-weight: 700; font-size: 1.2rem; }
.quick input { flex: 1; min-width: 0; border: none; outline: none; background: none; padding: 0.6rem 0; font-size: 0.95rem; }
.quick-prio { display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: rgba(20, 20, 20, 0.05); }
.quick-prio button, .seg button { padding: 0.35rem 0.6rem; border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.quick-prio button.is-on[data-qp="now"], .seg button.is-on[data-v="now"] { background: var(--now); color: #fff; }
.quick-prio button.is-on[data-qp="next"], .seg button.is-on[data-v="next"] { background: var(--next); color: var(--ink); }
.quick-prio button.is-on[data-qp="later"], .seg button.is-on[data-v="later"] { background: var(--later); color: #fff; }
.quick-add { padding: 0.6rem 1rem; }
.quick-preview { display: flex; gap: 0.35rem; min-height: 1.6rem; padding: 0.4rem 0.2rem 0; }
.search-row input { width: 100%; max-width: 280px; padding: 0.5rem 0.8rem; border-radius: 100px; border: 1px solid var(--line); background: var(--glass); font-size: 0.85rem; margin: 0.2rem 0 0.8rem; }
.search-row input:focus { outline: none; border-color: var(--gold); }

/* task list */
.group { margin-bottom: 1.2rem; }
.group-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; font-family: var(--sans); letter-spacing: 0; }
.group-n { margin-left: auto; font-size: 0.75rem; }
.pill { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 100px; }
.pill.prio-now, .task-prio.prio-now { background: rgba(229, 72, 77, 0.12); color: #B4373B; }
.pill.prio-next, .task-prio.prio-next { background: rgba(242, 169, 0, 0.18); color: var(--gold-deep); }
.pill.prio-later, .task-prio.prio-later { background: rgba(20, 20, 20, 0.07); color: var(--muted); }

.tasks { list-style: none; border-radius: 16px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.task { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; border-top: 1px solid var(--line); transition: background 0.2s, opacity 0.25s, transform 0.25s; }
.task:first-child { border-top: none; }
.task:hover { background: rgba(255, 255, 255, 0.65); }
.task.is-closing { opacity: 0; transform: translateX(10px); }
.check { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid currentColor; position: relative; transition: background 0.2s; }
.check.prio-now { color: var(--now); } .check.prio-next { color: var(--next); } .check.prio-later { color: var(--later); }
.check:hover::after, .is-done .check::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-done .check { background: currentColor; }
.is-done .check::after { border-color: #fff; }
.task-main { flex: 1; min-width: 0; display: grid; gap: 0.2rem; text-align: left; padding: 0.2rem 0; }
.task-title { font-size: 0.93rem; overflow-wrap: anywhere; }
.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip { font-size: 0.7rem; font-weight: 500; padding: 0.1rem 0.45rem; border-radius: 6px; background: rgba(20, 20, 20, 0.06); color: var(--muted); }
.chip-due { color: #2F7D4F; background: rgba(61, 180, 109, 0.12); }
.chip-due.is-late { color: #B4373B; background: rgba(229, 72, 77, 0.12); }
.chip-fup { color: #2C64C5; background: rgba(76, 141, 246, 0.14); font-weight: 700; }
.chip-tmrw { color: #6E3FBF; background: rgba(164, 114, 240, 0.14); font-weight: 700; }
.chip.prio-now { color: #B4373B; background: rgba(229, 72, 77, 0.12); font-weight: 700; }
.chip.prio-next { color: var(--gold-deep); background: rgba(242, 169, 0, 0.18); font-weight: 700; }
.chip.prio-later { font-weight: 700; }
.task-prio { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.22rem 0.5rem; border-radius: 100px; cursor: pointer; user-select: none; }
.task-acts { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.2s; }
.task:hover .task-acts, .task:focus-within .task-acts { opacity: 1; }
.task-acts button { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.25rem 0.45rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.task-acts button:hover { border-color: var(--ink); color: var(--ink); }
.is-done .task-acts { display: none; }
.empty { padding: 1.4rem; text-align: center; color: var(--muted); font-size: 0.9rem; border-radius: 16px; border: 1px dashed rgba(20, 20, 20, 0.15); }
.empty.small { padding: 0.7rem; font-size: 0.8rem; }
.closed { margin-top: 0.4rem; }
.closed summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); padding: 0.4rem 0; }

/* rule */
.rule-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 231, 163, 0.8), rgba(255, 255, 255, 0.5)); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.rule-card p { font-size: 0.9rem; max-width: 560px; }
.rule-foot { margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.shortcuts { margin-top: 0.6rem; font-size: 0.75rem; color: var(--muted); }
kbd { font-family: var(--sans); font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 5px; border: 1px solid var(--line); background: #fff; }

/* dialogs */
.sheet { margin: auto; width: min(480px, calc(100% - 1.5rem)); border: none; border-radius: 22px; padding: 0; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.sheet::backdrop { background: rgba(10, 10, 10, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-body { display: grid; gap: 0.9rem; padding: 1.3rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 1.2rem; }
.x { font-size: 1.6rem; line-height: 1; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; }
.x:hover { background: rgba(20, 20, 20, 0.06); }
.sheet label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sheet input, .sheet textarea { padding: 0.65rem 0.8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 400; color: var(--ink); }
.sheet input:focus, .sheet textarea:focus { outline: none; border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
fieldset { border: none; display: grid; gap: 0.3rem; }
legend { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 0.3rem; }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 100px; background: rgba(20, 20, 20, 0.05); width: fit-content; }
.seg-wrap { flex-wrap: wrap; border-radius: 14px; }
.seg button { font-size: 0.72rem; padding: 0.45rem 0.75rem; }
.seg button.is-on { background: var(--ink); color: #fff; }
.sheet-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem; }
.steps { list-style: none; display: grid; gap: 1rem; }
.steps li { display: grid; gap: 0.45rem; }
.step-label { font-family: var(--display); font-weight: 700; font-size: 0.9rem; }
.hint { font-size: 0.78rem; color: var(--gold-deep); }

.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 0.7rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.85rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); transition: opacity 0.25s, transform 0.3s var(--ease); z-index: 60; display: flex; gap: 0.8rem; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--gold); font-weight: 700; }

.fab { display: none; }

/* ---------------- tablet / phone / extension side panel ---------------- */
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; }
  .side-brand span { display: none; }
  .side-brand svg { width: 30px; height: 30px; }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button { flex-shrink: 0; padding: 0.45rem 0.7rem; font-size: 0.82rem; border-radius: 100px; background: rgba(255, 255, 255, 0.06); }
  .side-nav .dot { display: none; }
  .side-nav .count:empty { display: none; }
  .side-foot { display: none; }
  .main { padding: 1.1rem 0.85rem 6rem; }
  .main-head h1 { font-size: 1.5rem; }
  .progress { width: 46px; height: 46px; }
  .quick { flex-wrap: wrap; padding: 0.5rem 0.5rem 0.5rem 0.8rem; }
  .quick input { flex-basis: calc(100% - 2rem); }
  .quick-prio { flex: 1; }
  .quick-prio button { flex: 1; }
  .task-acts { opacity: 1; }
  .task-acts button[data-act="followup"] { display: none; }
  .search-row input { max-width: none; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
    width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--ink);
    font-size: 1.8rem; font-weight: 500; box-shadow: 0 14px 30px -10px rgba(242, 169, 0, 0.9);
  }
  .shortcuts { display: none; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* keep the scrolling tab bar from stretching the layout */
.app { grid-template-columns: 240px minmax(0, 1fr); }
.main, .side, .side-nav { min-width: 0; }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .quick-add { flex-shrink: 0; }
  .plan-card { padding: 0.75rem; }
  .plan-card input { padding: 0.45rem 0.55rem; font-size: 16px; }
  .quick input, .search-row input { font-size: 16px; }
}

/* Google sign-in */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem; width: 100%;
  margin-top: 1.6rem; padding: 0.8rem 1rem; border-radius: 100px;
  background: #fff; color: #1f1f1f; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6); transition: transform 0.2s var(--ease);
}
.btn-google:hover { transform: translateY(-1px); }
.auth-or { display: flex; align-items: center; gap: 0.8rem; margin: 1.3rem 0 -0.4rem; color: rgba(255, 255, 255, 0.45); font-size: 0.75rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.auth-legal { margin-top: 0.4rem; font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.auth-legal a { color: rgba(255, 255, 255, 0.7); }
