:root { --bg: #f2f4f5; --ink: #252b33; --muted: #707780; --line: #edf0f2; --accent: #2563eb; --sidebar: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #93b4fd; outline-offset: 3px; }
.icon { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.staging-banner { background: #fff4dd; color: #785b20; padding: 5px 12px; text-align: center; font-size: 10px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 650; color: #64748b; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 30px; letter-spacing: -1.2px; font-weight: 650; }
.brand > .icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.5; }
.brand-dot { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 1px solid transparent; font-size: 13px; font-weight: 500; position: relative; transition: background .18s, transform .18s; white-space: nowrap; }
.button:hover { transform: none; }
.primary { background: var(--accent); color: #fff; box-shadow: none; }
.primary:hover { background: #1d4ed8; }
.secondary { background: #fff; border-color: #e5e7eb;  color: #3f4854;}
.secondary:hover { background: #f5f7fa; }
.button.danger { background: #c94242; color: #fff; }
.full { width: 100%; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 8px; flex-shrink: 0; }
.icon-button:hover { background: #f3f4f680; }
.is-loading { pointer-events: none; opacity: .7; }
.is-loading::after { content: ''; width: 16px; height: 16px; margin-left: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { min-height: 100dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: var(--muted); }
.spinner { border: 3px solid #e5e7eb; border-top-color: var(--accent); width: 34px; height: 34px; border-radius: 50%; animation: spin .7s linear infinite; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: #fff; color: var(--ink); display: flex; flex-direction: column; padding: 28px 18px 18px; z-index: 30; transform: translateX(-100%); transition: transform .22s;  border-right: 1px solid #edf0f2; overflow-y: auto;}
.sidebar .brand { margin: 0 14px 34px; }
.workspace-label { color: #8a929c; font-size: 10px; font-weight: 600; letter-spacing: 1px; margin: 0 14px 16px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 8px; border-radius: 12px; color: #68717c; font-size: 13px; }
.nav-link.active { background: #edf3ff; color: var(--accent); font-weight: 550; }
.nav-link:hover { background: #f3f6fb; }
.nav-indicator { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-left: auto; }
.environment-menu { margin-top: 32px; padding-top: 20px; border-top: 1px solid #edf0f2; }
.sidebar { overflow-y: auto; }
.environment-menu .workspace-label { margin-bottom: 10px; }
.environment-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 12px; color: #68717c; font-size: 12px; }
.environment-link:hover { background: #f5f7fa; color: var(--ink); }
.environment-link.current { background: #f3f6fc; color: #334155; border-color: #e9eef6; }
.environment-link > .icon { width: 16px; height: 16px; }
.environment-link > .icon:last-child { margin-left: auto; width: 13px; }
.environment-link small { margin-left: auto; font-size: 10px; border-radius: 5px; padding: 2px 7px; background: #e7efff; color: var(--accent); }
.sidebar-quote { margin-top: auto; padding: 22px 15px 26px; color: #9ca3af; font-size: 11px; line-height: 1.9;  display: none;}
.sidebar-quote .icon { margin-bottom: 10px; color: #9ca3af; }
.sidebar-user { border-top: 1px solid #edf0f2; padding-top: 20px; display: flex; align-items: center; gap: 10px;  margin-top: auto;}
.avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #edf1f7; color: #52627a; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.sidebar-user .avatar { background: #e7efff;  color: var(--accent);}
.sidebar-user > div:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-user strong { display: block; font-size: 12px; font-weight: 500; }
.sidebar-user div > span { color: #8b939e; display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .icon-button { width: 25px; }
.sidebar-user .icon-button:hover { background: #f3f4f6; }
.sidebar-user .icon { width: 16px; }
.topbar { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e2e7ef; background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 12px; }
.breadcrumb strong { color: #475569; font-weight: 500; }
.breadcrumb .icon { width: 12px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.today { display: none; align-items: center; gap: 8px; color: #64748b; font-size: 12px; }
.today .icon { width: 16px; }
.small { width: 32px; height: 32px; font-size: 10px; }
.main { padding: 18px 16px 28px; max-width: 1480px; margin: auto; min-height: calc(100dvh - 136px); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-heading h1 { font-size: 26px; letter-spacing: -.7px; font-weight: 550; line-height: 1.3; margin-top: 0; }
.heading-dot { color: #64748b;  display: none;}
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px;  display: none;}
.page-heading > .button { padding: 10px 12px; }
.page-heading > .button .icon { width: 16px; }
.page-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px;  display: none;}
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 22px;  background: #fff; border-radius: 16px; padding: 12px 0;}
.summary-card { background: transparent; border: 0; border-radius: 0; padding: 4px 6px; display: block; justify-content: space-between; gap: 8px;  box-shadow: none; text-align: center;}
.summary-card + .summary-card { border-left: 1px solid var(--line); }
.summary-card > div { display: flex; flex-direction: column;  align-items: center;}
.summary-label { font-size: 10px; color: #737d89;  white-space: nowrap;}
.summary-card strong { font-weight: 500; font-size: 26px; margin: 4px 0 0; line-height: 1.2; letter-spacing: -1px; }
.summary-caption { font-size: 10px; color: #9299a2;  display: none;}
.summary-icon { display: none; place-items: center; height: 32px; width: 32px; border-radius: 12px;  background: #f5f7fb; color: #7b8ba4;}
.summary-icon .icon { width: 17px; height: 17px; }
.green { background: #edf3ff; color: #4b7be1; }
.orange.summary-icon { background: #f8f4ee; color: #b29269; }
.rose { background: #fbf0ef; color: #b7807a; }
.list-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-direction: column;  margin-bottom: 20px;}
.tabs { display: inline-flex; gap: 2px; background: #e9edf1; padding: 3px; border-radius: 12px; max-width: 100%;  overflow-x: auto; width: 100%;}
.tabs button { border: 0; background: transparent; padding: 9px 6px; font-size: 14px; font-weight: 500; color: #526075; border-radius: 10px; white-space: nowrap; flex: 1; min-height: 44px; }
.tabs button[aria-selected=true] { color: var(--ink); background: white; box-shadow: none; font-weight: 500; }
.tabs button span { font-size: 11px; background: #e6ebf1; border-radius: 5px; padding: 1px 4px; margin-left: 3px; color: #526075; }
.sort-control { display: inline-flex; align-items: center; gap: 7px; align-self: flex-end; color: #7a838e; padding: 0 3px; background: transparent; border: 0; border-radius: 12px;  min-height: 36px;}
.sort-control .icon { width: 16px; }
.sort-control select { background: transparent; color: #68717c; border: 0; padding: 6px 4px; font-size: 11px; max-width: 190px; }
.list-hint { display: none; align-items: center; gap: 7px; color: #8b939e; font-size: 11px; margin: 18px 0 26px; }
.list-hint .icon { width: 14px; height: 14px; }
.category-section { margin-bottom: 40px; }
.category-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 15px;  margin-bottom: 12px;}
.category-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; flex-shrink: 0; }
.orange .category-icon { background: #f7eee6; color: #bd8a62; }
.purple .category-icon { background: #f0edf9; color: #9b88ba; }
.blue .category-icon { background: #eaf0fa; color: #7899ca; }
.category-heading h2 { font-size: 18px; letter-spacing: -.4px; font-weight: 550; display: flex; align-items: center; gap: 10px; }
.category-heading h2 span { font-size: 11px; color: #8a939f; font-weight: 500; padding: 2px 7px; border: 0; border-radius: 6px; letter-spacing: 0;  background: #e9edf1;}
.category-heading p { font-size: 11px; margin-top: 1px; color: #8b939e;  display: none;}
.category-line { height: 1px; flex: 1; background: #e5e9ed; margin-left: 5px;  display: none;}
.goal-list { display: grid; gap: 10px; }
.goal-row { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; display: flex; align-items: stretch; transition: border .15s, box-shadow .15s; box-shadow: 0 1px 3px #1720330d; }
.goal-row:hover { border-color: #94a3b8; box-shadow: 0 2px 6px #17203312; }
.goal-row:focus-within { border-color: var(--accent); }
.drag-handle { display: flex; align-items: center; padding: 0 5px; margin: 10px 0 10px 5px; cursor: grab; touch-action: none; border: 0; color: #9ca3af; background: none; border-radius: 4px; }
.drag-handle .icon { width: 16px; }
.drag-handle:disabled { opacity: .2; }
.dragging { opacity: .45; border-style: dashed; }
.drop-target { border: 2px solid #64748b; background: #f8f9fb; }
.progress-track { height: 5px; background: #edf0f5; border-radius: 8px; overflow: hidden; }
.progress-track > span { height: 100%; display: block; background: #6593ef; border-radius: 8px; transition: width .3s; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 400; padding: 4px 7px; border-radius: 7px; white-space: nowrap; background: #f1f3f6; color: #7b8490; }
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-progress { color: #2563eb; background: #eff6ff; }
.status-achieved { color: #6684bb; background: #edf3ff; }
.situation { display: inline-flex; align-items: center; gap: 4px; color: #7a889c; font-size: 10px; white-space: nowrap; }
.situation .icon { width: 12px; height: 12px; }
.situation.late { color: #b77f72; }
.situation.early { color: #6a88bb; }
.goal-link { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; padding: 12px 14px 12px 4px; }
.goal-title { min-width: 0; }
.goal-title h3 { margin: 0; font-size: 14px; font-weight: 600; color: #172033; line-height: 1.4; overflow-wrap: anywhere; }
.goal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.goal-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.goal-row .badge { background: transparent; padding: 0; }
.goal-row .badge, .goal-row .situation, .goal-row .goal-deadline { font-size: 13px; font-weight: 500; }
.goal-row .situation .icon, .goal-row .goal-deadline .icon { width: 14px; height: 14px; }
.goal-deadline { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #7b8593; font-size: 10px; white-space: nowrap; }
.goal-deadline .icon { width: 12px; height: 12px; color: #9aa5b5; }
.goal-progress { display: flex; align-items: center; gap: 8px; min-width: 0; }
.goal-progress .progress-track { flex: 1; height: 12px; }
.goal-progress strong { color: #52617a; font-size: 11px; font-weight: 500; line-height: 1.3; }
.category-empty { border: 0; border-radius: 18px; padding: 24px 20px; font-size: 12px; color: #939ba5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;  background: #ffffffa3;}
.category-empty a { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #6686be; }
.category-empty .icon { width: 13px; height: 13px; }
.create-goal { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 12px; border: 0; border-radius: 16px; color: var(--accent); background: #fff; font-size: 13px; }
.create-goal:hover { background: #f8faff; }
.create-goal small { display: none; margin-left: auto; font-size: 10px; color: #7b8493; }
.create-goal .icon { width: 17px; }
.workspace-footer { display: none; justify-content: space-between; gap: 10px; font-size: 9px; color: #9ca3af; margin: 0 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.workspace-footer b { margin-left: 8px; color: #64748b; font-weight: 600; }
.nav-scrim { display: none; position: fixed; inset: 0 0 0 250px; background: #11182755; border: 0; z-index: 29; }
.nav-open .sidebar { transform: translateX(0); }
.nav-open .nav-scrim { display: block; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #778292; font-size: 12px; margin-bottom: 18px; }
.back-link .icon { width: 15px; }
.detail-heading { margin-bottom: 20px; }
.detail-heading > .button { max-width: 170px; white-space: normal; font-size: 11px; }
.detail-layout { display: flex; flex-direction: column-reverse; gap: 16px; }
.detail-main { display: grid; gap: 16px; min-width: 0; }
.panel { border: 1px solid #cbd5e1; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px #1720330d; }
.panel-heading { display: flex; align-items: center; gap: 10px; padding: 20px 16px; border-bottom: 1px solid #f2f4f6; }
.panel-heading h2 { font-size: 15px; font-weight: 500; }
.panel-heading p { font-size: 11px; color: #9099a4; margin-top: 4px; }
.section-icon { width: 32px; height: 32px; border-radius: 11px; background: #f4f6f9; color: #97a4b7; display: grid; place-items: center; }
.section-icon .icon { width: 17px; height: 17px; }
#goal-form { padding: 20px 16px; }
label { display: block; font-size: 12px; font-weight: 400; color: #6c7581; }
input, textarea, select { color: var(--ink); border: 0; border-radius: 0; background: transparent; max-width: 100%;  border-bottom: 1px solid #d8dee8;}
input, textarea { padding: 12px 0; width: 100%; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #a2abb7; font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 1px 0 var(--accent); }
input[type=date] { min-width: 0; min-height: 44px; }
label > input, label > select, label > textarea { display: block; margin-top: 8px; }
label > select { width: 100%; min-height: 44px; padding: 12px 0; }
.required { color: #64748b; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.notes-label { margin-top: 24px; }
.notes-label > .icon { width: 14px; margin-right: 7px; }
textarea { resize: none; min-height: 0; line-height: 1.7; overflow-y: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.form-foot > span { font-size: 9px; color: #7b8493; }
.form-foot > span .icon { width: 12px; height: 12px; margin-right: 4px; }
.form-foot .button { font-size: 11px; padding: 10px; }
.detail-aside { min-width: 0; }
.progress-panel { padding: 18px; text-align: left;  display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 4px 14px;}
.progress-ring { position: relative; width: 88px; height: 88px; margin: 0;  grid-column: 1; grid-row: 1 / 4;}
.progress-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: #edf1f7; }
.ring-value { stroke: #6593ef; stroke-dasharray: var(--progress) 100; stroke-linecap: round; transition: stroke-dasharray .5s; }
.progress-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-ring strong { font-size: 27px; font-weight: 450; letter-spacing: -1px; }
.progress-ring strong span { font-size: 16px; margin-left: 2px; }
.progress-ring > div > span { color: #7b8493; font-size: 10px; }
.progress-panel > .eyebrow { display: none; }
.progress-panel h2 { font-size: 14px; font-weight: 500;  grid-column: 2; grid-row: 1; align-self: end;}
.progress-panel > p { font-size: 11px; color: #8993a1; margin-top: 0;  grid-column: 2; grid-row: 2;}
.progress-badges { display: flex; gap: 7px; justify-content: flex-start; align-items: center; margin: 2px 0 0;  grid-column: 2; grid-row: 3; flex-wrap: wrap;}
.progress-deadline { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; color: #9ba8ba;  margin-top: 12px; grid-column: 1 / -1; grid-row: 4;}
.progress-deadline span { display: block; font-size: 11px; }
.progress-deadline strong { display: block; font-size: 13px; font-weight: 400; margin-top: 4px; color: #66758c; }
.detail-tip { display: none; align-items: flex-start; gap: 10px; padding: 22px 15px; color: #9aa6b7; font-size: 12px; line-height: 1.9; }
.detail-tip strong { font-weight: 500; color: #7c8da8; }
.count-chip { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #f0f3f7; color: #919dac; font-weight: 500; margin-left: 5px; }
.action-list { padding: 0 16px; }
.action-form { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 10px 8px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.action-form:last-child { border-bottom: 1px solid var(--line); }
.action-marker { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #9ca3af; background: #f3f4f6; grid-row: 1/3; }
.action-marker .icon { width: 14px; height: 14px; }
.action-form.done .action-marker { color: #7394ce; background: #edf3ff; }
.action-form.cancelled .action-marker { color: #b9928c; background: #fbefed; }
.action-name { grid-column: 2/4; }
.action-form label > span { display: block; font-size: 10px; font-weight: 400; color: #8f9aaa; }
.action-form input, .action-form select { font-size: 16px; margin-top: 4px; padding: 9px 0; min-height: 40px; }
.action-form .action-name input { color: #172033; font-weight: 600; }
.action-form.cancelled .action-name input { text-decoration: line-through; color: #526075; }
.action-date { grid-column: 2; }
.action-status { grid-column: 3; }
.save-action { grid-column: 4; grid-row: 1/3; color: #9aabc4; width: 30px; height: 44px; }
.edited .save-action { color: var(--accent); background: #edf3ff; }
.add-action { margin: 15px; width: calc(100% - 30px); border: 1px solid #b8c5d8; background: transparent; color: #365f9e; font-size: 12px; border-radius: 6px; }
.add-action:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.actions-empty { text-align: center; padding: 30px 10px 15px; }
.empty-icon { width: 50px; height: 50px; display: inline-grid; place-items: center; background: #f3f6fb; color: #98abc9; border-radius: 16px; margin-bottom: 16px; }
.actions-empty h3 { font-size: 13px; font-weight: 500; }
.actions-empty p { font-size: 11px; color: #7b8493; margin-top: 5px; }
.timeline { list-style: none; padding: 24px 20px; margin: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 25px; }
.timeline li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: #e5e7eb; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline-dot { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #8a9fc0; background: #f1f5fc; flex-shrink: 0; }
.timeline-dot .icon { width: 12px; height: 12px; }
.timeline li p { font-size: 12px; color: #798699; padding-top: 3px; overflow-wrap: anywhere; }
.timeline li time { display: block; margin-top: 5px; font-size: 10px; color: #a0aab7; }
.history-empty { padding: 25px; font-size: 11px; color: #7b8493; }
.backup-overview { border: 0; background: #fff; border-radius: 20px; display: flex; align-items: flex-start; gap: 15px; padding: 26px 22px; margin: 15px 0 36px; flex-wrap: wrap; }
.backup-overview-icon { background: #f1f5fc; color: #8ba3c8; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.backup-overview > div { flex: 1; min-width: 180px; }
.backup-overview h2 { font-size: 14px; font-weight: 550; }
.backup-overview p { font-size: 12px; line-height: 1.9; color: #8792a2; margin-top: 6px; overflow-wrap: anywhere; }
.backup-overview p strong { font-weight: 550; }
.schedule-pill { display: inline-flex; align-items: center; gap: 6px; background: #f2f6fd; color: #8a9fbe; border: 0; border-radius: 9px; padding: 7px 10px; font-size: 11px; }
.schedule-pill .icon { width: 14px; height: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.section-title h2 { font-size: 20px; font-weight: 500; }
.section-title p { font-size: 12px; color: #7b8493; margin-top: 6px; }
.section-title .count-chip { white-space: nowrap; }
.backup-row { display: flex; align-items: center; gap: 12px; padding: 22px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.backup-row:last-child { border-bottom: 0; }
.file-icon { width: 38px; height: 44px; display: grid; place-items: center; background: #f2f5fa; border: 0; color: #95a7c4; border-radius: 12px; }
.backup-info { flex: 1; min-width: 180px; }
.backup-info h3 { font-size: 13px; font-weight: 500; }
.backup-info p { color: #7b8493; font-size: 11px; margin: 5px 0; display: flex; gap: 8px; }
.backup-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #7b8493; }
.backup-status .icon { width: 12px; height: 12px; }
.backup-status.failed { color: #b78a7f; }
.backup-status.sent { color: #7392c6; }
.backup-buttons { display: flex; color: #91a3bd; margin-left: auto; }
.backup-buttons .icon-button { width: 36px; height: 36px; }
.backup-buttons .icon { width: 17px; }
.delete-backup:hover { color: #bf827a; background: #fcf2ef; }
.email-error { flex-basis: 100%; font-size: 10px; color: #64748b; overflow-wrap: anywhere; padding: 10px; background: #f8f9fb; border-radius: 6px; }
.email-error summary { cursor: pointer; }
.email-error p { margin-top: 8px; }
.backup-note { display: flex; gap: 7px; margin: 18px 3px; align-items: flex-start; font-size: 10px; color: #7b8493; }
.backup-note .icon { width: 13px; height: 13px; }
.backups-empty { text-align: center; padding: 55px 20px; }
.backups-empty h2 { font-size: 18px; font-weight: 500; }
.backups-empty p { margin-top: 10px; color: #7b8493; font-size: 12px; }
.backups-empty .button { margin-top: 22px; }
.page-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
.page-error { text-align: center; padding: 70px 10px; }
.page-error > .icon { width: 40px; height: 40px; color: #7b8493; margin-bottom: 15px; }
.page-error h1 { font-size: 22px; }
.page-error p { margin: 15px 0 30px; color: var(--muted); }
.page-error .button { margin: 5px; }
dialog { border: 0; border-radius: 24px; padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 16px 80px #1f29371f; color: var(--ink); max-height: calc(100dvh - 40px); }
dialog::backdrop { background: #11182755; backdrop-filter: blur(3px); }
.dialog-content { padding: 30px 26px; }
.dialog-content h2 { font-size: 23px; letter-spacing: -.5px; font-weight: 500; }
.dialog-content > p { color: #7b8493; font-size: 12px; line-height: 1.8; margin: 10px 0 23px; }
.dialog-content > label { margin-top: 20px; }
.dialog-content .eyebrow { margin-bottom: 10px; }
.dialog-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #edf3ff; color: #8ba5d1; border-radius: 13px; margin-bottom: 15px; }
.dialog-icon.danger { background: #fcf0ed; color: #bd8e83; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.dialog-buttons .button { font-size: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; }
.checkbox-label input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0;  border: 0; box-shadow: none;}
[hidden] { display: none !important; }
#notifications { position: fixed; bottom: 20px; right: 16px; left: 16px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #325ca4; color: white; padding: 14px 18px; border-radius: 15px; box-shadow: 0 8px 30px #1f293715; font-size: 12px; max-width: 430px; animation: toast-in .2s ease-out; }
.toast.error { background: #ac7067; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.login-layout { min-height: 100dvh; display: flex; }
.login-story { display: none; }
.login-main { display: flex; align-items: center; justify-content: center; min-height: 100dvh; flex: 1; padding: 50px 25px 90px; position: relative; background: var(--bg); }
.login-card { max-width: 410px; width: 100%;  background: #fff; border-radius: 24px; padding: 32px 24px;}
.mobile-brand { margin-bottom: 60px; }
.mobile-brand .icon { color: var(--accent); }
.login-card h2 { font-size: 32px; font-weight: 450; letter-spacing: -1px; line-height: 1.2; margin-top: 15px; }
.login-card > p { margin-top: 15px; font-size: 13px; }
#login-form { margin-top: 35px; }
#login-form > label { margin-bottom: 24px; font-size: 12px; }
.input-icon { border: 0; background: transparent; border-radius: 0; margin-top: 9px; display: flex; align-items: center; padding: 0;  border-bottom: 1px solid #d8dee8;}
.input-icon > .icon { color: #9ca3af; width: 17px; }
.input-icon input { border: 0; box-shadow: none; padding: 14px 12px; background: transparent; }
.input-icon input:focus { box-shadow: none; }
.input-icon:focus-within { outline: none;  border-color: var(--accent); box-shadow: 0 1px 0 var(--accent);}
.input-icon .icon-button { width: 28px; color: #9ca3af; }
.input-icon .icon-button .icon { width: 17px; }
#login-form > .button { min-height: 48px; justify-content: space-between; margin-top: 8px; }
.form-error { color: #64748b; font-size: 11px; min-height: 17px; margin-top: -8px; }
.login-safe { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 11px; color: #93a1b4; margin-top: 25px; }
.login-safe .icon { width: 14px; }
.login-main footer { position: absolute; bottom: 25px; font-size: 10px; color: #9ca3af; text-align: center; padding: 0 15px; }
.login-main footer span { padding: 0 7px; }
@media (min-width: 600px) {
  .goal-link { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,auto); gap: 6px 18px; padding: 12px 16px 12px 6px; }
  .goal-title { grid-column: 1; grid-row: 1; }
  .goal-progress { grid-column: 1; grid-row: 2; }
  .goal-meta { grid-column: 2; grid-row: 1 / 3; align-self: center; }

  .page-heading p, .category-heading p { display: block; }
  .tabs { width: auto; }
  .category-line { display: block; }
  .list-hint { display: flex; }
  .main { padding: 38px 30px; }
  .topbar { padding: 0 30px; }
  .today { display: flex; }
  .page-heading h1 { font-size: 30px; }
  .page-heading .eyebrow { font-size: 9px; }
  .page-heading > .button { padding: 12px 18px; }
  .summary-grid { margin-bottom: 26px; }
  .summary-card { padding: 12px 18px; }
  .summary-label { font-size: 12px; }
  .summary-caption { font-size: 10px; }
  .summary-icon { height: 38px; width: 38px; }
  .list-toolbar { flex-direction: row; align-items: center; }
  .sort-control { align-self: auto; }
  .tabs button { padding: 10px 15px; }
  .drag-handle { padding: 0 10px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .create-goal { justify-content: flex-start; padding: 22px; }
  .create-goal small { display: block; }
  .detail-heading > .button { max-width: none; white-space: nowrap; font-size: 13px; }
  .action-form { grid-template-columns: 24px minmax(0, 1fr) 140px 140px 30px; gap: 8px; }
  .action-marker { grid-row: 1; }
  .action-name { grid-column: 2; }
  .action-date { grid-column: 3; }
  .action-status { grid-column: 4; }
  .save-action { grid-column: 5; grid-row: 1; }
  .action-form input, .action-form select { font-size: 12px; }
  input, textarea { font-size: 13px; }
  .workspace-footer { margin: 0 30px; }
  .backup-row { padding: 24px; }
  .backup-buttons { margin-left: 0; }
}
@media (min-width: 1024px) {
  .progress-panel { display: block; text-align: center; padding: 26px 20px; }
  .progress-panel > .eyebrow { display: block; }
  .progress-ring { width: 172px; height: 172px; margin: 25px auto; }
  .progress-ring strong { font-size: 40px; }
  .progress-ring strong span { font-size: 23px; }
  .progress-ring > div > span { font-size: 11px; }
  .progress-panel h2 { font-size: 17px; }
  .progress-panel > p { font-size: 12px; margin-top: 6px; }
  .progress-badges { justify-content: center; gap: 12px; margin: 20px 0; }
  .progress-deadline { margin-top: 0; padding-top: 20px; justify-content: center; }
  .sidebar { transform: translateX(0); width: 230px; }
  .workspace { margin-left: 230px; }
  .mobile-menu { display: none; }
  .topbar { height: 76px; padding: 0 40px; }
  .main { padding: 40px; }
  .page-heading { margin-bottom: 32px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { font-size: 13px; }
  .summary-grid { margin-bottom: 28px; }
  .summary-card { padding: 12px 18px; }
  .summary-card strong { font-size: 28px; margin: 4px 0 0; }
  .summary-label { font-size: 12px; }
  .summary-caption { font-size: 10px; }
  .summary-icon { width: 32px; height: 32px; }
  .category-section { margin-bottom: 48px; }
  .category-heading h2 { font-size: 22px; }
  .category-heading { margin-bottom: 17px; }
  .detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; align-items: start; }
  .detail-tip { display: flex; }
  .action-form { grid-template-columns: 24px minmax(0,1fr) 110px 110px 26px; }
  .action-form input, .action-form select { font-size: 10px; padding: 9px 0; }
  .save-action { width: 26px; }
  .detail-aside { position: sticky; top: 25px; }
  .workspace-footer { margin: 0 40px; }
  .nav-scrim { display: none !important; }
  .login-story { background: #eef2f8; color: var(--ink); padding: 42px 55px; flex: 0 0 48%; display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; }
  .login-story > div { padding: 55px 0; max-width: 450px; }
  .login-story .brand { padding: 0; }
  .login-story h1 { font-size: clamp(40px, 4.2vw, 62px); font-weight: 450; line-height: 1.16; letter-spacing: -2px; margin: 26px 0; }
  .login-story h1 em { color: #6a8ecb; font-weight: 400; font-style: normal; }
  .login-story .eyebrow { color: #8c9bb2; }
  .login-story p { color: #8a98ac; font-size: 14px; max-width: 330px; line-height: 1.9; }
  .story-orbit { margin-top: 45px; display: grid; gap: 18px; }
  .story-orbit > div { font-size: 12px; color: #7f8ea5; display: flex; align-items: center; gap: 12px; }
  .story-orbit span { font-size: 10px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; border: 1px solid #cedaed; color: #7693c2; }
  .login-footer { color: #9ba8bb; font-size: 10px; }
  .mobile-brand { display: none; }
}
@media (min-width: 1350px) {
  .goal-link { grid-template-columns: minmax(0,1fr) minmax(260px,auto); gap: 6px 24px; padding: 14px 18px 14px 8px; }
  .goal-title { grid-column: 1; grid-row: 1; }
  .goal-progress { grid-column: 1; grid-row: 2; }
  .goal-meta { grid-column: 2; grid-row: 1 / 3; align-self: center; }

  .sidebar { width: 248px; }
  .workspace { margin-left: 248px; }
  .main { padding: 44px 48px; }
  .summary-card { padding: 12px 18px; }
  .summary-label { font-size: 11px; }
  .summary-icon { width: 38px; height: 38px; }
  .summary-caption { font-size: 10px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 290px; }
  .action-form { grid-template-columns: 26px minmax(0,1fr) 130px 130px 30px; }
  .action-form input, .action-form select { font-size: 12px; }
  .panel-heading { padding: 24px; }
  #goal-form { padding: 24px; }
  .action-list { padding: 0 24px; }
  .schedule-pill { margin-left: 10px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.action-list .action-form { margin: 12px 0; padding: 14px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px #1720330d; }
.action-list .action-form:focus-within { border-color: var(--accent); }
.goal-meta, .goal-row .badge, .goal-row .situation, .action-form label > span { color: #526075; }
.goal-row .status-progress { color: #2563eb; }
.goal-row .status-achieved, .goal-row .situation.early { color: #315eaa; }
.goal-row .situation.late { color: #9b4438; }
.action-list .action-name input { font-size: 16px; color: #172033; font-weight: 600; }
.goal-summary-card { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: center; padding: 24px 18px; gap: 10px; }
.editable-goal-layout { display: block; }
.goal-summary-card .progress-ring { width: 234px; height: 234px; margin: 8px auto 8px; }
.goal-summary-card > .eyebrow { display: none; }
.goal-summary-card .progress-ring strong { font-size: 42px; }
.goal-summary-card .progress-ring strong span { font-size: 24px; }
.goal-summary-card h2 { display: block; width: 100%; font-size: 18px; margin: 0; text-align: center; overflow-wrap: anywhere; }
.goal-summary-card h2 > span { display: block; width: 100%; min-width: 0; }
.goal-summary-card #goal-form { padding: 0; margin-top: 8px; border-top: 1px solid var(--line); text-align: left; }
.goal-summary-card .notes-label { margin-top: 16px; }
.goal-creation-card #goal-title { text-align: center; font-size: 18px; font-weight: 600; margin: 0; }
.goal-creation-card .progress-deadline > div { min-width: 0; }
.goal-creation-card .progress-deadline input { min-height: 44px; font-size: 16px; }
.goal-creation-card .goal-category > strong { min-width: 0; }
.goal-creation-card .goal-category select { width: 100%; min-height: 44px; padding: 8px 0; font-size: 16px; }
.goal-summary-card .progress-badges { justify-content: center; }
.goal-summary-card .progress-deadline { grid-row: 4; }
.goal-summary-card .progress-deadline > div { flex: 1; }
.goal-category { grid-column: 1 / -1; grid-row: 5; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.goal-category > span { font-size: 12px; color: #66758c; }
.goal-category > strong { flex: 1; font-size: 13px; font-weight: 500; }
.goal-summary-card .goal-note-bubble { width: 100%; text-align: left; }
.goal-summary-card .goal-edit-button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; margin: 0; padding: 0; color: #526075; background: transparent; }
.goal-summary-card .progress-deadline { justify-content: flex-start; align-items: center; }
.goal-summary-card .goal-deadline-situation { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; white-space: nowrap; font-size: 12px; }
.goal-summary-card .goal-deadline-situation .icon { width: 15px; height: 15px; }
.mobile-menu { width: 80px; height: 80px; margin: -12px; }
.mobile-menu .icon { width: 40px; height: 40px; }
.topbar:has(.mobile-menu) { min-height: 80px; }
.goal-summary-card .progress-ring circle { stroke-width: 12.6; }
.goal-summary-card .progress-ring strong { font-size: 68px; }
.goal-summary-card .progress-ring strong span { font-size: 36px; }
.goal-summary-card h2 { font-size: 22px; }
.goal-summary-card > p { margin: 0 0 16px; color: #66758c; font-size: 13px; }
.goal-summary-card .progress-badges { margin: 4px 0 8px; }
.goal-summary-card .goal-category-inline { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 2px 0 6px; color: #66758c; font-size: 14px; text-align: left; }
.goal-summary-card .goal-category-inline strong { color: #334155; font-weight: 550; text-align: right; }
.goal-summary-card .goal-category-inline strong .icon { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; }
.goal-summary-card .progress-deadline { justify-content: space-between; }
.goal-summary-card .progress-deadline > div { flex: 1; }
.goal-summary-card .progress-deadline span { font-size: 12px; }
.goal-summary-card .progress-deadline strong { font-size: 14px; }
.goal-deadline-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; }
.goal-summary-card .goal-deadline-status { font-size: 11px; }
.goal-summary-card .goal-deadline-situation { margin-left: 0; }
.back-link { gap: 8px; font-size: 12px; font-weight: 550; }
.back-link .icon { width: 23px; height: 23px; }
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}
.actions-panel { margin-top: 36px; margin-bottom: 32px; }
.titlebar-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.titlebar-brand img { display: block; width: 160px; height: 40px; object-fit: contain; }
.titlebar-add-goal { min-width: 44px; min-height: 44px; padding: 10px; background: transparent; color: var(--accent); }
.titlebar-add-goal:hover { background: transparent; color: #1d4ed8; }
.titlebar-add-goal > span { display: none; }
@media (max-width: 599px) {
  .topbar-right { gap: 8px; }
  .topbar-right > .avatar { display: none; }
}
@media (min-width: 600px) {
  .titlebar-add-goal { padding: 10px 14px; }
  .titlebar-add-goal > span { display: inline; }
}
.action-list .action-form { grid-template-columns: minmax(0, 1fr); }
.action-list .action-name { grid-column: 1 / -1; }
.action-list .action-date { grid-column: 1 / -1; }
.action-list .action-marker { grid-row: 1 / 3; }
.action-status-buttons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.action-status-button { min-height: 44px; padding: 7px 3px; border: 1px solid #d8dee8; border-radius: 5px; background: transparent; color: #526075; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.action-status-button .icon { width: 14px; height: 14px; flex-shrink: 0; }
.action-status-button[aria-pressed="true"] { border-color: #2563eb; color: #1746ac; background: #edf3ff; font-weight: 600; }
.action-status-button[data-status="cancelled"][aria-pressed="true"] { border-color: #bc7770; background: #fbefed; color: #8b342a; }
.action-status-button:disabled { opacity: .6; cursor: wait; }
.actions-panel .action-list { display: grid; gap: 0; padding: 0; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px #1720330d; }
.actions-panel .action-form { margin: 0; padding: 14px 16px; border: 0; border-bottom: 1px solid #dce2ea; border-radius: 0; background: transparent; box-shadow: none; gap: 8px; }
.actions-panel .action-form:last-child { border-bottom: 0; }
.actions-panel .action-form:focus-within { border-color: #dce2ea; }
.action-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.action-card-heading h3 { font-size: 15px; line-height: 1.4; font-weight: 600; color: #172033; overflow-wrap: anywhere; }
.action-card-heading .edit-action { width: 44px; height: 44px; color: #526075; }
.action-form.cancelled .action-card-heading h3 { text-decoration: line-through; color: #526075; }
.action-date-display { display: flex; align-items: center; gap: 6px; color: #526075; font-size: 13px; }
.action-date-display .icon { width: 15px; height: 15px; }
.action-meta-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; color: #526075; font-size: 13px; }
.action-meta-line time { white-space: nowrap; }
.action-meta-line .action-current-status { margin-left: auto; }
.action-situation { display: inline-flex; align-items: center; gap: 5px; color: #268263; font-size: 12px; white-space: nowrap; }
.action-situation .icon { width: 14px; height: 14px; }
.action-situation.late { color: #bb4d48; }
.action-note-bubble { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: #f2f6fc; color: #526075; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.action-note-bubble .icon { width: 15px; height: 15px; margin-top: 2px; color: #7186a5; }
.action-note-bubble p { min-width: 0; white-space: pre-wrap; }
.action-status-radios { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.action-status-radios legend { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #526075; }
.action-status-radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid #d8dee8; border-radius: 6px; color: #526075; cursor: pointer; }
.action-status-radios label:has(input:checked) { border-color: #2563eb; background: #edf3ff; color: #1746ac; font-weight: 600; }
.action-status-radios input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); flex: 0 0 18px; }
.actions-panel .add-action { width: 100%; margin: 12px 0 0; }
.action-status-control { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.action-current-status { display: inline-flex; align-items: center; gap: 6px; color: #526075; font-size: 12px; }
.action-current-status .icon { width: 16px; height: 16px; }
.action-status-trigger { background: transparent; color: #365f9e; border: 0; border-radius: 5px; min-height: 44px; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.action-status-trigger .icon { width: 16px; height: 16px; }
.status-options { display: grid; gap: 10px; }
.status-options .action-status-button { min-height: 52px; padding: 12px 14px; justify-content: flex-start; font-size: 15px; gap: 12px; }
.status-options .action-status-button > span { flex: 1; text-align: left; }
.status-options .action-status-button .icon { display: block; width: 20px; height: 20px; }
.form-foot { justify-content: flex-end; }
@media (max-width: 599px) {
  dialog { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: calc(100dvh - 24px); border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog::before { content: ''; display: block; width: 36px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: #cbd2dd; }
  .dialog-content { padding: 20px 20px 24px; }
}
@media (max-width: 380px) {
  .tabs button { padding-inline: 3px; }
  .tabs button span { padding-inline: 3px; margin-left: 1px; }
  .titlebar-brand img { width: 124px; height: 31px; }
  .action-status-button { font-size: 11px; }
  .action-status-button .icon { display: none; }
}
.titlebar-fullscreen { width: 44px; height: 44px; color: #526075; }
.app-fullscreen body, .app-fullscreen #app { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: auto; z-index: 100; }
