/* Account pages: log in, sign up, reset password, My Tixible. Uses the same colours as the rest of the site. */
.auth-wrap { padding: 56px 0 88px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--card-border, var(--line));
  border-radius: var(--radius, 14px);
  padding: 32px;
  box-shadow: 0 18px 44px rgba(23, 21, 15, 0.08);
}
.auth-card h1 { font-size: 28px; margin: 0 0 6px; }
.auth-sub { color: var(--ink-soft, var(--ink-soft)); font-size: 15px; margin: 0 0 22px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft, var(--ink-soft)); }
.auth-form input {
  padding: 12px;
  border: 1px solid var(--card-border, var(--line));
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  background: var(--surface);
  color: var(--ink, var(--ink));
}
.auth-form input:focus { outline: 2px solid var(--amber, #e8b83e); outline-offset: 0; border-color: var(--amber-dark, #d9a52f); }
.auth-hint { font-size: 12px; font-weight: 400; color: var(--ink-faint, var(--ink-faint)); }
.auth-msg { min-height: 20px; margin: 0; font-size: 14px; color: var(--ink-soft, var(--ink-soft)); }
.auth-form > .auth-msg:empty { min-height: 0; height: 0; margin-top: -16px; } /* no hole above the button until there is something to say */
.auth-msg.err { color: var(--err); }
.auth-msg.ok { color: var(--ok); }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-google svg { width: 18px; height: 18px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--ink-faint, var(--ink-faint)); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--card-border, var(--surface-3)); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: 14px; }
.auth-links a, .auth-note a { color: var(--amber-dark, #d9a52f); font-weight: 600; }
.auth-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-faint, var(--ink-faint)); }
.auth-done h2 { font-size: 22px; margin: 0 0 10px; }
.auth-done p { font-size: 15px; color: var(--ink-soft, var(--ink-soft)); margin: 0 0 14px; }
.auth-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--amber-dark, #d9a52f); cursor: pointer; text-decoration: underline; }

/* My Tixible */
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.acct-head h1 { font-size: 34px; margin: 0; }
.acct-email { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft, var(--ink-soft)); }
.acct-banner { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); border: 1px solid #2f5e3f; color: var(--ok); font-size: 14px; }
.acct-banner.warn { background: var(--warn-bg); border-color: #6b5220; color: var(--link); }
.acct-section { margin-top: 32px; }
.acct-section h2 { font-size: 20px; margin: 0 0 14px; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-card { background: var(--surface); border: 1px solid var(--card-border, var(--line)); border-radius: var(--radius, 14px); padding: 18px 20px; }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.req-kind { font-weight: 700; font-size: 16px; }
.req-topic { font-size: 13px; color: var(--ink-faint, var(--ink-faint)); margin-top: 2px; }
.req-msg { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft, var(--ink-soft)); white-space: pre-wrap; overflow-wrap: anywhere; }
.req-date { margin: 10px 0 0; font-size: 12px; color: var(--ink-faint, var(--ink-faint)); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); }
.pill.s-received { background: var(--surface-2); color: #2f4a8a; }
.pill.s-in-review { background: var(--warn-bg); color: var(--link); }
.pill.s-replied { background: var(--ok-bg); color: var(--ok); }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--card-border, var(--line)); border-radius: var(--radius, 14px); color: var(--ink-soft, var(--ink-soft)); font-size: 15px; }
.empty a { color: var(--amber-dark, #d9a52f); font-weight: 600; }
@media (max-width: 560px) {
  .auth-wrap { padding: 32px 0 64px; }
  .auth-card { padding: 24px 20px; }
  .acct-head h1 { font-size: 28px; }
}

/* author styles with display:flex must not defeat the hidden attribute */
.auth-wrap [hidden], .acct-banner[hidden], #acct-main[hidden] { display: none !important; }

/* My Tixible tabs and profile cards */
.acct-tabs { display: flex; gap: 8px; margin-top: 24px; border-bottom: 1px solid var(--card-border, var(--line)); }
.acct-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft, var(--ink-soft)); cursor: pointer; margin-bottom: -1px; }
.acct-tab.is-active { color: var(--ink, var(--ink)); border-bottom-color: var(--amber, #e8b83e); }
.acct-card { background: var(--surface); border: 1px solid var(--card-border, var(--line)); border-radius: var(--radius, 14px); padding: 22px; margin-bottom: 16px; max-width: 640px; }
.acct-card h3 { font-size: 17px; margin: 0 0 10px; }
.acct-note { font-size: 14px; color: var(--ink-soft, var(--ink-soft)); margin: 0 0 14px; }
.acct-card .auth-form { max-width: 440px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-danger { border-color: #6e3530; }
.acct-danger h3 { color: var(--err); }

/* Projects and messages */
.proj-card { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--card-border, var(--line)); border-radius: var(--radius, 14px); padding: 18px 20px; }
.proj-card:hover { border-color: var(--amber-dark, #d9a52f); }
.proj-title { font-weight: 700; font-size: 17px; }
.proj-meta { font-size: 13px; color: var(--ink-faint, var(--ink-faint)); margin-top: 3px; }
.pbar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.pbar i { display: block; height: 100%; background: var(--amber, #e8b83e); border-radius: 99px; }
.pbar-label { font-size: 13px; font-weight: 700; color: var(--ink-soft, var(--ink-soft)); }
.pill.s-in-progress { background: var(--surface-2); color: #a9c1ff; }
.pill.s-on-hold { background: var(--warn-bg); color: var(--link); }
.pill.s-delivered { background: var(--ok-bg); color: var(--ok); }
.pill.s-cancelled { background: var(--err-bg); color: var(--err); }
.dot { display: inline-block; min-width: 22px; padding: 2px 8px; margin-left: 6px; border-radius: 99px; background: var(--amber, #e8b83e); color: #141210; font-size: 12px; font-weight: 700; text-align: center; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.proj-grid div { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.proj-grid dt, .proj-grid .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint, var(--ink-faint)); }
.proj-grid .v { font-size: 15px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.mslist, .filelist, .updates { list-style: none; margin: 0; padding: 0; }
.mslist li, .filelist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--card-border, var(--line)); font-size: 15px; }
.mslist li:last-child, .filelist li:last-child { border-bottom: 0; }
.mslist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.mslist .done .tick { background: #1b7a3d; border-color: #1b7a3d; color: #fff; }
.mslist .done .nm { color: var(--ink-faint, var(--ink-faint)); text-decoration: line-through; }
.mslist .nm, .filelist .nm { flex: 1; overflow-wrap: anywhere; }
.mslist .when { font-size: 13px; color: var(--ink-faint, var(--ink-faint)); }
.updates li { font-size: 14px; color: var(--ink-soft, var(--ink-soft)); padding: 5px 0; }
.updates time { color: var(--ink-faint, var(--ink-faint)); margin-right: 6px; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; margin: 10px 0 12px; }
.bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); }
.bubble.me { align-self: flex-end; background: var(--amber, #e8b83e); color: #141210; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 3px; }
.reply-form textarea { width: 100%; min-height: 84px; padding: 12px; border: 1px solid var(--card-border, var(--line)); border-radius: 8px; font: inherit; font-size: 15px; resize: vertical; }
.reply-form textarea:focus { outline: 2px solid var(--amber, #e8b83e); }
.backlink { background: none; border: 0; padding: 0; margin-bottom: 14px; font: inherit; font-weight: 600; color: var(--amber-dark, #d9a52f); cursor: pointer; text-decoration: underline; }

/* phone fixes: file rows and the tab bar */
.filelist .btn { flex: none; width: auto; min-height: 40px; padding: 0 16px; }
.filelist .nm, .mslist .nm { min-width: 0; }
.acct-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .acct-tab { padding: 12px 10px; font-size: 14px; } .acct-tabs { gap: 2px; } }

/* orders, bills, delivery */
.tl { list-style: none; margin: 14px 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tl li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint, var(--ink-faint)); padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--surface-2); }
.tl .dotm { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.tl li.done { color: var(--ok); } .tl li.done .dotm { background: #1b7a3d; }
.tl li.now { color: var(--ink, var(--ink)); background: var(--app-amber-soft); font-weight: 700; } .tl li.now .dotm { background: var(--amber, #e8b83e); }
.brief { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.brief dt { color: var(--ink-faint, var(--ink-faint)); } .brief dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.doc-table th, .doc-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--card-border, var(--line)); vertical-align: top; }
.doc-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint, var(--ink-faint)); }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-table tfoot td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.pay-box { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--card-border, var(--line)); font-size: 14px; }
.pay-box p { margin: 6px 0 0; white-space: pre-wrap; }
.deliver { border-color: var(--amber, #e8b83e); background: var(--surface-2); }
.skel-card { height: 78px; border-radius: var(--radius, 14px); background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.4s infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel-card { animation: none; } }
@media (max-width: 560px) { .brief { grid-template-columns: 1fr; } .doc-table { font-size: 13px; } }

/* "Keep me signed in" */
.auth-form .keep { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; font-size: 15px; cursor: pointer; }
.auth-form .keep input { width: 22px; height: 22px; padding: 0; margin: 0; flex-shrink: 0; accent-color: #17150f; }

/* "I agree to the Terms of Service and Privacy Policy": a large tick box, and links that stand out and open in a new tab */
.agree { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin-top: 16px; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink, var(--ink)); cursor: pointer; }
.agree input { width: 24px; height: 24px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: #e8b84b; cursor: pointer; }
.agree a.policy { display: inline-block; padding: 1px 0; color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-color: #e8b84b; text-decoration-thickness: 3px; text-underline-offset: 3px; border-radius: 4px; transition: transform .1s ease, background-color .1s ease; }
.agree a.policy:active { transform: scale(.95); background: rgba(232, 184, 75, .35); }
html[data-theme="dark"] .agree a.policy { color: #e8b84b; }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-form label.agree { flex-direction: row; gap: 12px; font-size: 14px; color: var(--ink, var(--ink)); margin-top: 0; }
