/* Made for a phone, for someone who wants big, plain buttons and large type. */
* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f4f1ea; color: #14213d; line-height: 1.35; }
h1 { font-size: 1.6rem; margin: .4rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
a { color: #0b4fb3; }
button { font: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); background: #1d3557; color: #fff; }
.top-home { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.top-right { display: flex; gap: .4rem; align-items: center; }
.top-right form { margin: 0; }
.top-link { color: #fff; background: none; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: .3rem .7rem; font-size: .8rem; text-decoration: none; cursor: pointer; }
.wrap { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 3rem; }

/* Big buttons: the whole app is these. */
.big { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 4.2rem; margin: 0 0 1rem; padding: 1rem; border-radius: 16px; border: 3px solid transparent; font-size: 1.3rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.big:active { transform: scale(.98); }
.big:disabled { opacity: .55; cursor: default; }
.big-green { background: #2b9348; color: #fff; }
.big-blue { background: #0b4fb3; color: #fff; }
.big-amber { background: #f4a300; color: #14213d; }
.big-white { background: #fff; color: #14213d; border-color: #9aa5b8; }
.big-camera { min-height: 9rem; font-size: 1.5rem; flex-direction: column; }
.big-icon { font-size: 3rem; line-height: 1; }

.msg { padding: .8rem 1rem; border-radius: 12px; margin: 0 0 1rem; font-size: 1.05rem; }
.msg-bad { background: #fde2e1; color: #7a1712; border: 2px solid #e5a29f; }
.msg-warn { background: #fff1cc; color: #5c3d00; border: 2px solid #f0c75e; }
.msg-info { background: #e3eefc; color: #0d2f66; border: 2px solid #a9c4ee; }

/* Sign in */
.login { text-align: center; max-width: 360px; margin: 0 auto; }
.pin { width: 100%; font-size: 2rem; text-align: center; letter-spacing: .5rem; padding: .6rem; border: 3px solid #9aa5b8; border-radius: 14px; margin-bottom: 1rem; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.key { min-height: 4.2rem; font-size: 1.8rem; font-weight: 700; border-radius: 16px; border: 2px solid #9aa5b8; background: #fff; color: #14213d; cursor: pointer; }
.key:active { background: #e3eefc; }
.key-soft { background: #eceff3; }
.key-go { background: #2b9348; color: #fff; border-color: #2b9348; font-size: 1.4rem; }

/* Pick a company */
.hello { font-size: 1.5rem; }
.companies { display: grid; gap: 1.1rem; }
.company { display: flex; flex-direction: column; justify-content: center; gap: .3rem; min-height: 8.5rem; padding: 1.2rem; border-radius: 20px; color: #fff; text-decoration: none; background: var(--tone, #0b4fb3); box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.company:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.company-name { font-size: 1.6rem; font-weight: 800; }
.company-wait { font-size: 1.05rem; background: rgba(255,255,255,.22); align-self: flex-start; padding: .2rem .7rem; border-radius: 999px; }
.tone-1 { --tone: #0b4fb3; }
.tone-2 { --tone: #c2410c; }
.tone-3 { --tone: #2b7a3d; }

/* One company */
.co-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: -.2rem 0 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--tone); color: #fff; }
.co-name { font-size: 1.3rem; font-weight: 800; }
.co-switch { color: #fff; font-size: .9rem; white-space: nowrap; }

.spinner { width: 5rem; height: 5rem; margin: 3rem auto 1.5rem; border: .6rem solid #d5dbe5; border-top-color: #0b4fb3; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-text { text-align: center; font-size: 1.4rem; font-weight: 700; }

.count { text-align: center; font-size: 1.05rem; color: #4a5568; margin: 0 0 .5rem; min-height: 1.2em; }
.card { background: #fff; border-radius: 18px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.photo { display: block; width: 100%; padding: 0; border: 0; background: #eceff3; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; cursor: zoom-in; }
.photo img { display: block; width: 100%; max-height: 16rem; object-fit: contain; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: 1.2rem; }
.facts dt { color: #4a5568; }
.facts dd { margin: 0; font-weight: 700; word-break: break-word; }
.facts .amount { font-size: 1.6rem; }
.same { display: inline-block; font-size: .8rem; font-weight: 600; color: #1b5e20; background: #e3f3e8; padding: .05rem .5rem; border-radius: 999px; vertical-align: middle; }

.edit label { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: .9rem; }
.edit input, .edit select { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font-size: 1.25rem; border: 2px solid #9aa5b8; border-radius: 12px; background: #fff; color: #14213d; }
.edit input:focus, .edit select:focus { outline: 3px solid #0b4fb3; border-color: #0b4fb3; }

.small-actions { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .2rem; }
.link { background: none; border: 0; color: #0b4fb3; font-size: 1.1rem; text-decoration: underline; padding: .6rem .2rem; cursor: pointer; }
.link-red { color: #a61b12; }

.done-mark { width: 7rem; height: 7rem; margin: 3rem auto 1rem; border-radius: 50%; background: #2b9348; color: #fff; font-size: 4.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.done-text { text-align: center; font-size: 1.6rem; font-weight: 800; }

.today { margin-top: 1.5rem; }
.today h2 { font-size: 1.1rem; color: #4a5568; }
.today ul { list-style: none; margin: 0; padding: 0; }
.today li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #d5dbe5; }

.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 10; display: flex; flex-direction: column; padding: 1rem; }
.zoom img { flex: 1; min-height: 0; width: 100%; object-fit: contain; margin-bottom: 1rem; }
.zoom[hidden] { display: none; }
[hidden] { display: none !important; }

/* Settings (Merrill and Stacy): ordinary size. */
#settings { font-size: .85rem; }
.panel { background: #fff; border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.note, .hint { color: #4a5568; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-weight: 600; }
.row select { font-size: .9rem; padding: .3rem; }
.btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.btn { display: inline-block; padding: .5rem .9rem; border-radius: 10px; border: 2px solid #9aa5b8; background: #fff; color: #14213d; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-go { background: #2b9348; border-color: #2b9348; color: #fff; }
.btn-red { color: #a61b12; border-color: #e5a29f; }
.tbl { border-collapse: collapse; margin-top: .5rem; width: 100%; }
.tbl th, .tbl td { text-align: left; padding: .25rem .4rem; border-bottom: 1px solid #eee; }
code { background: #eceff3; padding: .1rem .3rem; border-radius: 4px; }
