/* Timesheet Maker — style.css (v20261128a) */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c2130; background: #f4f6fb; line-height: 1.55;
}
.hero { background: #1f3864; color: #fff; padding: 28px 20px 24px; text-align: center; position: relative; }
.hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.hero .tagline { font-size: 17px; margin: 0 0 12px; opacity: .95; }
.hero .honest, .hero .privacy { max-width: 760px; margin: 10px auto 0; font-size: 14px; line-height: 1.55; text-align: left; background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 14px; }
.lang-switch { position: absolute; top: 12px; right: 14px; display: flex; gap: 6px; }
.lang-switch button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.lang-switch button.active { background: #fff; color: #1f3864; font-weight: 700; }
main { max-width: 1020px; margin: 0 auto; padding: 20px 16px 40px; }
section { background: #fff; border-radius: 14px; padding: 20px 22px; margin: 0 0 18px; box-shadow: 0 1px 4px rgba(20,30,60,.08); }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 { margin: 0 0 8px; font-size: 16px; }
.steps ol { margin: 0; padding-left: 22px; }
.steps li { margin: 6px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.btn { display: inline-block; padding: 9px 15px; border-radius: 9px; border: 1.5px solid #c6cad6; background: #fff; color: #1c2130; font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { border-color: #2f6df6; }
.btn.primary { background: #2f6df6; border-color: #2f6df6; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #2458cc; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: #8c2f1b; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.count { margin-left: auto; font-size: 13px; color: #5a6070; }
.status { font-size: 14px; color: #1f6b2e; min-height: 20px; }
.fine { font-size: 13.5px; color: #5a6070; margin: 8px 0 0; }

/* Profile form */
.profile-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 0.8fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: 13px; color: #5a6070; margin-bottom: 5px; }
.field input { width: 100%; padding: 9px 11px; font-size: 14px; border: 1.5px solid #c6cad6; border-radius: 9px; background: #fbfcfe; color: #1c2130; font-family: inherit; }
.field input:focus { outline: none; border-color: #2f6df6; }
.field .hint { font-size: 12.5px; color: #5a6070; margin: 4px 0 0; }

/* Week navigation */
.week-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.week-label { font-size: 18px; font-weight: 700; margin: 0 6px; min-width: 210px; text-align: center; }

/* Quick-add */
.quick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-row input { flex: 1 1 320px; padding: 11px 13px; font-size: 15px; border: 1.5px solid #c6cad6; border-radius: 9px; background: #fbfcfe; color: #1c2130; font-family: inherit; }
.quick-row input:focus { outline: none; border-color: #2f6df6; }
.quick-preview { min-height: 22px; margin: 8px 0 0; font-size: 14px; color: #1f6b2e; }
.quick-preview:empty { display: none; }

/* Entry form */
.entry-form { display: grid; grid-template-columns: 150px 1.1fr 1.6fr 90px 110px auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.entry-form .field input { background: #fbfcfe; }
.form-actions { display: flex; gap: 8px; }

/* Entries table */
.table-wrap { overflow-x: auto; }
table.entries { width: 100%; border-collapse: collapse; font-size: 14px; }
table.entries th, table.entries td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #e3e6ee; vertical-align: top; }
table.entries th { background: #eef2f7; color: #3c4150; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.entries td.num, table.entries th.num { text-align: right; white-space: nowrap; }
table.entries td.actions { white-space: nowrap; text-align: right; }
table.entries td.actions .btn { margin-left: 4px; }
table.entries td.empty { text-align: center; color: #5a6070; padding: 18px 10px; }

/* Totals */
.totals { border-top: 2px solid #2f6df6; margin-top: 12px; padding-top: 10px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px; font-size: 14px; }
.total-row.sub { color: #5a6070; }
.total-row.grand { font-weight: 700; font-size: 16px; border-top: 1px solid #e3e6ee; margin-top: 6px; padding-top: 10px; }
.total-row.grand span:last-child { color: #1f3864; }

/* Pro panel */
.pro-badge { background: #e6f4ea; border: 1px solid #a8d5b0; color: #1f6b2e; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.pro ul { margin: 0 0 14px; padding-left: 22px; }
.pro li { margin: 5px 0; }
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.how-card { border: 1.5px solid #e3e6ee; border-radius: 12px; padding: 14px 16px; }
.how-card h3 { margin-bottom: 4px; }
.how-card p { font-size: 14px; color: #444a58; margin: 0; }

.faq h3 { margin-top: 16px; }
.faq p { margin: 4px 0 0; color: #333947; }
footer { text-align: center; font-size: 13.5px; color: #5a6070; padding: 10px 16px 30px; }
footer a { color: #2f6df6; }

/* Feedback prompt pill */
#fb-prompt { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; align-items: center; background: #1f2937; color: #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.28); font-family: inherit; max-width: calc(100vw - 32px); }
#fb-prompt .fb-prompt-link { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 9px 6px 9px 14px; white-space: nowrap; }
#fb-prompt .fb-prompt-close { background: transparent; border: 0; color: #cbd5e1; font-size: 16px; line-height: 1; padding: 9px 12px 9px 6px; cursor: pointer; }
#fb-prompt .fb-prompt-close:hover { color: #fff; }
#fb-prompt .fb-prompt-tip { display: none; position: absolute; right: 0; bottom: calc(100% + 10px); width: 270px; max-width: calc(100vw - 32px); background: #1f2937; color: #fff; font-size: 13.5px; line-height: 1.55; padding: 11px 13px; border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.32); text-align: left; }
#fb-prompt:hover .fb-prompt-tip, #fb-prompt:focus-within .fb-prompt-tip { display: block; }

@media (max-width: 760px) {
  .hero h1 { font-size: 24px; }
  .lang-switch { position: static; justify-content: center; margin-bottom: 10px; }
  .profile-grid { grid-template-columns: 1fr; }
  .entry-form { grid-template-columns: 1fr 1fr; }
  .entry-form .field.task-field { grid-column: 1 / -1; }
  .how-grid { grid-template-columns: 1fr; }
  .week-label { min-width: 0; flex: 1; }
}
