/* QF Living branding — teal #009797, dark #007789, buff #FDCBA1, blue #6DCFF6 */
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, -apple-system, sans-serif;
  background: #f4f8f8; color: #17333a;
}

.brand { background: linear-gradient(135deg, #009797, #007789); color: #fff; padding: 14px 18px; }
.brand-inner { max-width: 860px; margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.brand-name { font-weight: 600; letter-spacing: 2px; font-size: 1.05rem; }
.brand-sub { font-weight: 400; letter-spacing: 0; opacity: .85; font-size: .85rem; }
.tagline { font-weight: 600; font-size: .95rem; }
.t-we { color: #FDCBA1; } .t-acc { color: #fff; } .t-you { color: #6DCFF6; }

main { max-width: 860px; margin: 0 auto; padding: 18px 14px 90px; }
.loading { padding: 40px; text-align: center; color: #007789; }

.who h1 { color: #007789; font-size: 1.5rem; }
.role { color: #4a6d75; margin: 2px 0 8px; }
.weekline { margin-bottom: 10px; line-height: 1.45; }
.demo-note { background: #FFEFE1; border: 1px solid #FDCBA1; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: .9rem; }

.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bar { flex: 1; height: 10px; background: #d9e8ea; border-radius: 5px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(90deg, #009797, #6DCFF6); border-radius: 5px; transition: width .3s; }
.ptext { font-size: .85rem; color: #4a6d75; white-space: nowrap; }
.submitted-badge { background: #e2f6ec; border-radius: 8px; padding: 6px 10px; margin-top: 8px; display: inline-block; font-size: .9rem; }

section { margin-top: 26px; }
section h2 { color: #007789; font-size: 1.1rem; border-bottom: 2px solid #009797; padding-bottom: 6px; margin-bottom: 12px; }

.field { background: #fff; border: 1px solid #dcebed; border-radius: 12px; padding: 14px; margin-bottom: 14px; position: relative; }
.flabel { font-weight: 600; font-size: .95rem; display: block; }
.opt { font-weight: 400; font-size: .75rem; color: #8aa6ac; background: #eef5f6; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.hint { font-size: .82rem; color: #6d8991; margin: 4px 0 10px; line-height: 1.4; }

.input-wrap { position: relative; }
textarea {
  width: 100%; min-height: 84px; border: 1px solid #c3dde1; border-radius: 8px;
  padding: 10px 10px 34px; font: inherit; font-size: .95rem; resize: vertical; background: #fbfeff;
}
textarea:focus, input:focus { outline: 2px solid #009797; border-color: transparent; }

.mic-tools { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px; }
button.mic, button.tidy {
  border: none; border-radius: 16px; padding: 4px 10px; cursor: pointer; font-size: .85rem;
  background: #e6f4f5; color: #007789;
}
button.mic.recording { background: #ff5252; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 82, 82, .25); } }

.choices { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.radio { font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.radio input { margin: 0; flex: none; }
.ditem .radio input { width: auto; }

.table-field .trow { display: grid; grid-template-columns: repeat(5, 1fr) 28px; gap: 6px; margin-bottom: 6px; }
.table-field input, .ditem input { border: 1px solid #c3dde1; border-radius: 6px; padding: 8px; font: inherit; font-size: .85rem; width: 100%; }
.del-row { border: none; background: none; color: #b0c8cd; cursor: pointer; }
.del-row:hover { color: #ff5252; }
.add-row { border: 1px dashed #009797; background: none; color: #007789; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: .85rem; }

.ditem { border: 1px solid #dcebed; border-left: 4px solid #009797; border-radius: 8px; padding: 10px; margin-bottom: 10px; display: grid; gap: 8px; }
.ditem textarea { min-height: 56px; padding-bottom: 10px; }
.ditem-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 2px; }
.ditem-foot .del-row { margin-left: auto; font-size: 1rem; line-height: 1; }

.savestate { position: absolute; top: 12px; right: 14px; font-size: .75rem; color: #009797; }
.others { margin-bottom: 8px; font-size: .85rem; }
.others summary { cursor: pointer; color: #007789; }
.other { margin: 6px 0 0 12px; color: #4a6d75; }
.other em, .attr { color: #009797; font-style: normal; font-weight: 600; font-size: .82rem; }

.submitbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fffffff2; border-top: 1px solid #dcebed; padding: 10px 14px; text-align: center; }
#submitBtn { background: #009797; color: #fff; border: none; border-radius: 24px; padding: 12px 28px; font: inherit; font-weight: 600; cursor: pointer; }
#submitBtn:hover { background: #007789; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0; }
.card { background: #fff; border: 1px solid #dcebed; border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; display: block; }
.card strong { display: block; color: #007789; }
.card span { font-size: .8rem; color: #6d8991; }
.person-link:hover { border-color: #009797; }
.admin-link { border-left: 4px solid #FDCBA1; }
.card.status .bar { margin: 8px 0 4px; }

.action-item { border: 1px solid #dcebed; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.action-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.action-name { font-size: .9rem; font-weight: 600; flex: 1; min-width: 200px; }
.badge { font-size: .7rem; border-radius: 10px; padding: 2px 8px; background: #eef5f6; color: #4a6d75; white-space: nowrap; }
.badge.prio-high { background: #ffe3e3; color: #b23b3b; }
.badge.prio-medium { background: #FFEFE1; color: #a06a2c; }
.badge.due { background: #CAEBFC; color: #1c6285; }
.status-input { width: 100%; border: 1px solid #c3dde1; border-radius: 6px; padding: 8px; font: inherit; font-size: .88rem; }
tr.row-done td { color: #9ab4b9; text-decoration: line-through; }
tr.row-done td:last-child { text-decoration: none; }

.preview-h { color: #007789; margin-top: 30px; font-size: 1.15rem; }
table.mini { border-collapse: collapse; width: 100%; font-size: .82rem; margin: 6px 0; }
table.mini th, table.mini td { border: 1px solid #dcebed; padding: 5px 7px; text-align: left; }
table.mini th { background: #eef7f8; color: #007789; }
.dec-preview { border-left: 3px solid #009797; padding: 6px 10px; margin: 8px 0; }
.badge-y { background: #FFEFE1; border: 1px solid #FDCBA1; font-size: .72rem; border-radius: 10px; padding: 2px 8px; margin-left: 6px; }

@media (max-width: 640px) {
  .table-field .trow { grid-template-columns: 1fr 1fr; }
  .table-field .trow .del-row { grid-column: 2; justify-self: end; }
}
