/* oilapi.net: the sign-in page and the account area. */
.auth { min-height: calc(100vh - 102px); display: grid; grid-template-columns: minmax(0, 1fr) 460px; background: radial-gradient(900px 500px at 20% 30%, rgba(200,169,106,.12), transparent 60%), var(--page); }
.auth-pitch { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 720px; justify-self: end; }
.auth-pitch .sec-title { font-size: 44px; }
.auth-pitch .sec-sub { margin-bottom: 30px; }
.auth-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.auth-facts .tile { height: 92px; }
.auth-facts .tile .v { font-size: 26px; }
.auth-card { background: var(--card); border-left: 1px solid var(--line); padding: 64px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-card .mark { width: 44px; height: 44px; margin-bottom: 22px; }
.auth-card h1 { font-size: 26px; font-weight: 300; color: var(--midnight); margin: 0 0 8px; }
.auth-card .lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.gbtn { height: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.gbtn:hover { border-color: var(--slate); }
.auth-list { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.auth-list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink); }
.auth-list li svg { margin-top: 3px; }
.auth-fine { margin-top: 26px; color: var(--slate); font-size: 12.5px; line-height: 1.6; }
.auth-fine a { color: var(--brass); }

.acct { max-width: 1320px; margin: 0 auto; padding: 36px 28px 72px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.side { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--ink); font-size: 13.5px; white-space: nowrap; border-left: 2px solid transparent; }
.side a:hover { background: var(--card); }
.side a.on { background: var(--card); border-left-color: var(--champagne); color: var(--midnight); }
.side .who { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.acct-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.acct-h h1 { margin: 0; font-size: 30px; font-weight: 300; color: var(--midnight); }
.acct-h .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.reveal { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; background: #FBF6EC; border: 1px solid #E7D5AE; border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; }
.reveal .t { color: var(--midnight); font-size: 15px; }
.reveal .d { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.keyline { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; gap: 8px; }
.keyline code { height: 40px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13.5px; color: var(--deep); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.keyline .btn { height: 40px; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; min-height: 172px; }
.card .k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card .v { font-size: 28px; font-weight: 300; color: var(--midnight); font-variant-numeric: tabular-nums; margin-top: 8px; white-space: nowrap; }
.card .v small { font-size: 13px; color: var(--muted); margin-left: 6px; }
.card .n { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.card .acts2 { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.card .acts2 .btn { height: 36px; font-size: 13px; }
.meter { height: 8px; border-radius: 8px; background: #EFEBE2; margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #1F3A5F, #C8A96A); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.panel2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.panel2-h { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.panel2-h span { color: var(--muted); font-size: 12px; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; align-items: end; height: 150px; padding: 18px; }
.bars i { display: block; background: #D6DEE8; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .8s cubic-bezier(.2,.8,.2,1); }
.bars i.today { background: var(--champagne); }
.bars-x { display: flex; justify-content: space-between; padding: 0 18px 14px; color: var(--slate); font-size: 11.5px; }
.log-day { padding: 10px 18px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.log-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 46px 60px; gap: 10px; align-items: center; height: 38px; padding: 0 18px; font-size: 12.5px; font-variant-numeric: tabular-nums; border-bottom: 1px solid #F2EEE6; white-space: nowrap; }
.log-row .tm { color: var(--slate); }
.log-row .ep { font-family: ui-monospace, Consolas, Menlo, monospace; color: var(--deep); overflow: hidden; text-overflow: ellipsis; }
.log-row .st { text-align: center; border-radius: 6px; padding: 2px 0; font-size: 11.5px; }
.log-row .st.ok { background: rgba(63,162,122,.12); color: #2F7F5F; }
.log-row .st.no { background: #FBEFEC; color: #A65A4B; }
.log-row .ms { text-align: right; color: var(--muted); }
.quick { margin-top: 12px; }
.quick pre { margin: 0; padding: 16px 18px; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: var(--ink); background: #FBFAF7; border-radius: 0 0 var(--r) var(--r); white-space: pre-wrap; word-break: break-all; }
.quick .tk-s { color: #8A6A35; }
@media (max-width: 1000px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-pitch { padding: 40px 16px 8px; justify-self: stretch; }
  .auth-pitch .sec-title { font-size: 32px; }
  .auth-facts { grid-template-columns: 1fr 1fr 1fr; }
  .auth-card { border-left: 0; padding: 32px 16px 48px; }
  .acct { grid-template-columns: 1fr; padding: 20px 16px 56px; }
  .side { position: static; flex-direction: row; overflow-x: auto; }
  .side .who { display: none; }
  .cards { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .keyline { grid-template-columns: 1fr 1fr; }
  .keyline code { grid-column: 1 / -1; }
}
.auth-facts .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-facts .tile .k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.auth-facts .tile .v { font-weight: 300; color: var(--midnight); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.auth-facts .tile .n { font-size: 12px; color: var(--slate); white-space: nowrap; }
button.btn { font: inherit; font-size: 13px; cursor: pointer; background: var(--card); }
button.btn.solid { background: var(--midnight); }

.ktable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.ktable th { text-align: left; font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); height: 40px; padding: 0 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ktable td { height: 48px; padding: 0 18px; border-bottom: 1px solid #F2EEE6; white-space: nowrap; }
.ktable tr:last-child td { border-bottom: 0; }
.ktable code { font-family: ui-monospace, Consolas, Menlo, monospace; color: var(--deep); }
.chip { display: inline-block; min-width: 72px; text-align: center; font-size: 12px; border-radius: 6px; padding: 3px 0; }
.chip.on { background: rgba(63,162,122,.12); color: #2F7F5F; }
.chip.off { background: #F2EFE8; color: var(--muted); }
.empty-note { padding: 22px 18px; color: var(--muted); font-size: 13.5px; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.notice b { font-weight: 400; color: var(--ink); }
.auth-err { background: #FBEFEC; border: 1px solid #F0D3CB; color: #8A4A3D; border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; }
.gbox { display: none; min-height: 46px; }
.g-ready .gbox { display: flex; justify-content: center; }
.g-ready .gbtn.fallback { display: none; }
dialog.modal { border: 1px solid var(--line); border-radius: var(--r); padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(14,26,43,.24); }
dialog.modal::backdrop { background: rgba(14,26,43,.35); }
.modal-b { padding: 24px; }
.modal-b h2 { margin: 0 0 8px; font-size: 20px; font-weight: 300; color: var(--midnight); }
.modal-b p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-b label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink); margin-bottom: 18px; }
.modal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-acts .btn { height: 40px; }
.modal-acts .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 560px) {
  .auth-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .auth-facts .tile { padding: 10px 12px; height: 76px; }
  .auth-facts .tile .v { font-size: 20px; }
  .auth-facts .tile .n { display: none; }
}
.danger { margin-top: 12px; }
.danger .panel2-h { color: #8A4A3D; }
.danger-b { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; }
.danger-b p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.del-list { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
@media (max-width: 760px) {
  .danger-b { flex-direction: column; align-items: stretch; }
  .danger-b .btn { width: 100% !important; }
}
.oauth-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.oauth-acts .btn { height: 46px; font-size: 14.5px; }
.ktable .lbl { color: var(--muted); font-size: 12px; margin-left: 8px; }
.ktable form { margin: 0; }
.ktable .btn { height: 30px; width: 96px; font-size: 12.5px; }
.charge-line { margin: 4px 2px 14px; font-size: 12.5px; color: var(--slate); }
.charge-line a, .modal label a { color: var(--brass); }
