:root { --background: #0b0d0f; --foreground: #16191b; --text: #f4f6f7; --accent: #65e5b7; --accent-contrast: #07130e; --company: "Cromwell"; color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: var(--background); color: var(--text); }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 22%, var(--background)) 0, transparent 34rem), var(--background); min-height: 100vh; }
main { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
header, .section-title, .timer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account { display: flex; align-items: center; gap: 14px; color: #aeb6b8; }
h1, h2, p { margin: 0; } h1 { font-size: 2.5rem; letter-spacing: -.06em; } h2 { font-size: 1.35rem; }
.eyebrow, .label { color: var(--accent); font-size: .7rem; letter-spacing: .16em; font-weight: 800; }
.eyebrow { text-transform: uppercase; }
.eyebrow::before { content: var(--company); }
.card { background: color-mix(in srgb, var(--foreground) 93%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, var(--foreground)); border-radius: 16px; padding: 24px; margin-top: 20px; box-shadow: 0 18px 60px #0005; }
.timer { min-height: 150px; border-color: color-mix(in srgb, var(--accent) 45%, var(--foreground)); } #elapsed { font: 700 2.5rem/1.2 ui-monospace, monospace; color: var(--accent); margin-top: 12px; }
input { width: min(360px, 50%); padding: 13px 15px; color: inherit; background: #0d1011; border: 1px solid #3b4143; border-radius: 9px; }
button { cursor: pointer; font: inherit; } button:disabled { cursor: not-allowed; opacity: .45; }
.danger { border: 0; border-radius: 9px; padding: 13px 18px; background: #ed6a5a; color: #170302; font-weight: 800; }
.quiet { border: 1px solid #3b4143; border-radius: 8px; padding: 8px 11px; color: #d9dfe0; background: transparent; }
.quiet:hover { border-color: var(--accent); }
.link-button { display: inline-block; text-decoration: none; }
.link-button[hidden] { display: none; }
.settings-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #3b4143; border-radius: 9px; color: #d9dfe0; }
.settings-link[hidden] { display: none; }.settings-link:hover { color: var(--accent); border-color: var(--accent); }
.settings-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.project-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; text-align: left; border: 1px solid #343a3c; border-radius: 12px; background: #111416; color: inherit; padding: 16px; }
.project-filter:hover { border-color: var(--accent); transform: translateY(-1px); }
.project-filter.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.project-filter span, .project-filter small { display: block; }
.project-filter small { margin-top: 7px; color: var(--accent); font: 700 .74rem ui-monospace, monospace; }
.project-filter em { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 99px; color: #aeb7b9; background: #24292b; font-style: normal; font-size: .78rem; font-weight: 800; }
.project-filter.active em { color: var(--accent-contrast); background: var(--accent); }
.selection-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; }.selection-meta[hidden] { display: none; }.selection-heading { color: #a7b0b2; font-size: .8rem; font-weight: 750; }
.search-project-filters { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }.search-project-filters[hidden] { display: none; }.search-project-filter { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #343a3c; border-radius: 99px; color: #aeb7b9; background: #111416; font-size: .72rem; font-weight: 750; }.search-project-filter:hover { color: var(--accent); border-color: var(--accent); }.search-project-filter.active { color: var(--accent-contrast); border-color: var(--accent); background: var(--accent); }.search-project-filter em { min-width: 20px; padding: 2px 5px; border-radius: 99px; color: inherit; background: color-mix(in srgb, currentColor 13%, transparent); font-style: normal; font-size: .65rem; text-align: center; }
.timesheet-title { align-items: flex-end; }
#week-range { display: block; margin-top: 5px; color: #929b9e; font-size: .76rem; }
.week-controls { display: flex; align-items: center; gap: 7px; }
.week-controls #total { min-width: 92px; margin-left: 8px; text-align: right; }
.week-arrow { width: 35px; font-size: 1.2rem; line-height: 1; }
.day-group { margin-top: 18px; border: 1px solid #303638; border-radius: 10px; overflow: visible; }
.day-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding: 10px 14px; border-radius: 9px 9px 0 0; color: #c8ced0; background: #242a2c; }
.day-header > strong { font-size: .82rem; }.day-header > span { color: #929b9e; font-size: .72rem; }.day-header b { margin-left: 5px; color: #f4f6f7; font-size: .9rem; }
.day-group .entry { padding-left: 13px; padding-right: 13px; }.day-group .entry:last-child { border-radius: 0 0 9px 9px; }
.week-empty { padding: 28px 2px 8px; }
.timesheet-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; color: #929b9e; font-size: .78rem; }
.timesheet-pagination[hidden] { display: none; }
.timesheet-pagination select { width: 68px; padding: 8px 9px; border: 1px solid #3b4143; border-radius: 8px; color: #dce1e2; background: #0d1011; }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.group-filter { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; text-align: left; border: 1px solid #303638; border-radius: 9px; padding: 11px 13px; color: #d6dcdd; background: #0f1213; }
.group-filter:hover { border-color: var(--accent); }
.group-filter.active { color: #fff; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); }
.group-filter em { flex: 0 0 auto; min-width: 27px; padding: 4px 7px; border-radius: 99px; color: #9aa4a6; background: #252a2c; font-style: normal; text-align: center; font-size: .72rem; font-weight: 800; }
.group-filter.active em { color: var(--accent-contrast); background: var(--accent); }
.picker-empty { grid-column: 1 / -1; padding: 24px 2px 4px; }
.code { text-align: left; border: 1px solid #343a3c; border-radius: 10px; background: #111416; color: inherit; padding: 14px; }
.code:hover { border-color: var(--accent); transform: translateY(-1px); }.code.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }.code span, .code small, .entry small { display: block; }.code small, .entry small, .empty { color: #929b9e; margin-top: 5px; }
.work-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--foreground)); border-radius: 11px; background: color-mix(in srgb, var(--accent) 8%, var(--foreground)); }
.work-actions[hidden] { display: none; }.selected-work { min-width: 0; }.selected-work strong, .selected-work small { display: block; }.selected-work strong { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.selected-work small { margin-top: 4px; color: #929b9e; }
.work-action-buttons, .dialog-actions { display: flex; align-items: center; gap: 9px; }.primary-action, .secondary-action { border-radius: 9px; padding: 11px 16px; font-weight: 800; }.primary-action { border: 0; color: var(--accent-contrast); background: var(--accent); }.secondary-action { border: 1px solid var(--accent); color: var(--accent); background: transparent; }.secondary-action:hover { color: var(--accent-contrast); background: var(--accent); }
.entry-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid #3b4143; border-radius: 15px; color: var(--text); background: var(--foreground); box-shadow: 0 26px 90px #000c; }.entry-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }.entry-dialog form { padding: 23px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.dialog-close { width: 34px; height: 34px; border: 1px solid #3b4143; border-radius: 8px; color: #aeb7b9; background: transparent; font-size: 1.35rem; line-height: 1; }.dialog-close:hover { color: var(--accent); border-color: var(--accent); }.manual-work-title { margin-top: 18px; padding: 12px 13px; border-radius: 8px; color: #dfe4e5; background: #0d1011; font-weight: 750; }.manual-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin-top: 18px; }.entry-dialog label { display: grid; gap: 7px; color: #aeb7b9; font-size: .78rem; font-weight: 700; }.entry-dialog input { width: 100%; }.manual-note { margin-top: 12px; }.dialog-actions { justify-content: flex-end; margin-top: 20px; }.form-error { margin-top: 12px; color: #ff8172; font-size: .8rem; }
.entry { display: grid; grid-template-columns: minmax(225px, 1fr) 48px 178px 44px 98px 80px; align-items: center; gap: 10px; border-top: 1px solid #303638; padding: 13px 0; }.entry:first-child { margin-top: 14px; }
.entry-description { min-width: 0; }.entry-description b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry input { min-width: 0; }
.time-range { display: flex; align-items: center; justify-content: center; gap: 3px; color: #717b7e; }
.entry-time { width: 76px; padding: 7px 5px; border-color: transparent; background: transparent; color: #dce1e2; text-align: center; }
.date-control { position: relative; display: grid; place-items: center; width: 40px; height: 36px; }
.date-picker { display: grid; place-items: center; width: 40px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #aeb7b9; background: transparent; cursor: pointer; }
.date-picker:hover, .date-picker:focus { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); outline: none; }
.date-picker svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.entry-date { position: absolute; left: 50%; bottom: 2px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.duration-input { width: 98px; padding: 7px 8px; border-color: transparent; background: transparent; color: #f4f6f7; text-align: right; font-weight: 800; }
.entry-time:hover, .entry-time:focus, .entry-date:hover, .entry-date:focus, .duration-input:hover, .duration-input:focus { border-color: var(--accent); background: #0d1011; outline: none; }
.entry input:disabled { opacity: .65; }
.label-cell { display: grid; place-items: center; position: relative; }
.label-menu { position: relative; }
.label-menu summary, .label-empty { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 38px; height: 34px; color: var(--accent); border: 1px solid transparent; border-radius: 8px; list-style: none; cursor: pointer; }
.label-menu summary::-webkit-details-marker { display: none; }
.label-menu summary:hover, .label-menu[open] summary { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); }
.label-menu svg, .label-empty svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.label-menu summary span { font-size: .65rem; font-weight: 800; }
.label-empty { color: #596164; cursor: default; }
.label-links { position: absolute; z-index: 5; top: 39px; left: 50%; min-width: 170px; padding: 7px; transform: translateX(-50%); border: 1px solid #3b4143; border-radius: 9px; background: #0d1011; box-shadow: 0 12px 30px #0009; }
.label-links a { display: block; padding: 8px 9px; border-radius: 6px; color: #dce1e2; text-decoration: none; white-space: nowrap; }
.label-links a:hover { color: var(--accent-contrast); background: var(--accent); }
.entry-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.resume-entry { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; color: var(--accent); background: transparent; font-size: 1.05rem; }
.resume-entry:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); }
.entry-menu { position: relative; }
.entry-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #aeb7b9; border: 1px solid transparent; border-radius: 50%; list-style: none; cursor: pointer; }
.entry-menu summary::-webkit-details-marker { display: none; }
.entry-menu summary:hover, .entry-menu[open] summary { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--foreground)); }
.entry-menu svg { width: 19px; fill: currentColor; stroke: none; }
.entry-menu-links { position: absolute; z-index: 5; top: 39px; right: 0; min-width: 140px; padding: 7px; border: 1px solid #3b4143; border-radius: 9px; background: #0d1011; box-shadow: 0 12px 30px #0009; display: grid; gap: 2px; }
.entry-menu-links button { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; color: #dce1e2; background: transparent; text-align: left; font: inherit; }
.entry-menu-links button:hover:not(:disabled) { color: var(--accent-contrast); background: var(--accent); }
.entry-menu-links button:disabled { color: #596164; cursor: not-allowed; }
.entry-menu-links .delete-entry:hover:not(:disabled) { color: #170302; background: #ed6a5a; }
.sync-badge { margin-left: 6px; color: #ff8172; cursor: default; }
@media (max-width: 760px) { .projects, .groups { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .codes { grid-template-columns: 1fr; } .section-title { align-items: flex-start; flex-direction: column; } input { width: 100%; } }
@media (max-width: 1040px) { .entry { grid-template-columns: minmax(220px, 1fr) 42px 170px 40px 94px 76px; gap: 6px; } }
@media (max-width: 820px) { .entry { grid-template-columns: 1fr auto auto; } .entry-description { grid-column: 1 / -1; } .label-cell { justify-self: start; } .time-range { justify-self: center; } .entry-date { justify-self: end; } .duration-input { grid-column: 2; } .entry-actions { grid-column: 3; } }
@media (max-width: 650px) { .timesheet-title { align-items: stretch; } .week-controls { width: 100%; flex-wrap: wrap; } .week-controls #total { margin-left: auto; } .timesheet-pagination { justify-content: flex-start; flex-wrap: wrap; } }
@media (max-width: 650px) { .selection-meta { align-items: flex-start; flex-direction: column; }.search-project-filters { justify-content: flex-start; } }
@media (max-width: 650px) { .work-actions { align-items: stretch; flex-direction: column; }.work-action-buttons { width: 100%; }.work-action-buttons button { flex: 1; }.manual-fields { grid-template-columns: 1fr 1fr; }.manual-fields label:first-child { grid-column: 1 / -1; } }
