/* Dovetly cabinet extras (zone A3). Loaded BEFORE /shared/dovetly.css on purpose:
   the design system wins wherever both define a rule. This file only adds the
   cabinet-specific pieces the design system does not name (login page, wizard
   internals, key list, event log, request cards, billing rows). */

.toast[hidden]{display:none}
.loading{padding:40px 0;color:var(--muted)}
.back{font-size:13px;color:var(--muted);text-decoration:none}
.back:hover{color:var(--terra)}
.rows{display:flex;flex-direction:column;gap:10px}
.card__title{margin-bottom:12px}
.card .card__title:last-child{margin-bottom:0}

/* sidebar extras */
.sidebar__email{display:block;overflow-wrap:anywhere}
.sidebar__logout{display:inline-block;margin-top:8px;font-size:13px;color:var(--muted);text-decoration:none}
.sidebar__logout:hover{color:var(--terra)}

/* dashboard */
.describe{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:20px 22px;border-radius:var(--r-md);margin-top:4px}
.describe__title{font-weight:600;font-size:15.5px}
.describe__sub{font-size:13.5px;color:var(--muted)}

/* forms */
.field__control{display:flex;gap:8px;align-items:center}
.field__control .input{flex:1;min-width:0}
.choice{display:flex;gap:8px;flex-wrap:wrap}
.choice__item{position:relative}
.choice__item input{position:absolute;opacity:0;width:0;height:0}
.choice__item .pill{cursor:pointer}
.choice__item input:focus-visible+.pill{outline:2px solid var(--terra);outline-offset:2px}
.copybox{display:flex;gap:8px;align-items:center;padding:6px 6px 6px 14px;border:1.5px solid #d6d3cf;border-radius:var(--r-sm);background:var(--stone)}
.copybox__url{flex:1;min-width:0;font:13.5px/1.4 ui-monospace,Menlo,Consolas,monospace;overflow-wrap:anywhere}

/* wizard extras */
.wizard__body form,.wizard__final{display:flex;flex-direction:column;gap:22px}
.wizard__done{display:flex;flex-direction:column;gap:12px;align-items:flex-start;max-width:560px}
.wizard__done h2{font-size:28px}

/* details */
.detail__paid{font-weight:600;margin:10px 0 12px}
.detail__plan .row{margin-top:14px}
.keylist{display:flex;flex-direction:column}
.keyrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.keyrow:first-child{border-top:0;padding-top:0}
.keyrow__title{font-weight:600}
.keylist+.small{margin-top:10px}
.loglist{display:flex;flex-direction:column;gap:6px}
.logrow{display:grid;grid-template-columns:110px 10px minmax(0,1fr);gap:10px;align-items:center;font-size:14px}
.logrow__time{color:var(--muted);font-size:13px}
.logrow__dot{width:8px;height:8px;border-radius:50%;background:var(--running)}
.logrow__dot--warn{background:var(--attention)}.logrow__dot--error{background:var(--error)}

/* requests */
.request__text{font-weight:600;font-size:15.5px;margin:10px 0 12px}
.request__foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.request__price{font-weight:600}

/* billing */
.billing__big{font-family:var(--font-display);font-weight:800;font-size:24px;margin-bottom:4px}
.billing__cancel{padding-top:4px}
.table--plain{gap:0}
.table--plain .table__row{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto;gap:14px;padding:12px 0;border:0;border-top:1px solid var(--line);border-radius:0}
.table--plain .table__row:first-child{border-top:0;padding-top:0}
.table__cell--name{font-weight:600}
.table__cell--end{justify-self:end;text-align:right}

/* login page (no shell) */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--stone);font-size:14.5px;line-height:1.5}
.login__card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:14px;padding:32px}
.login__logo{display:inline-flex;color:var(--ink);padding-bottom:6px}
.login__logo svg{height:26px;width:auto}
.login__title{font-size:26px}
.login__alt{margin-top:6px}

@media (max-width:820px){
  .sidebar__logout{margin:0 0 0 12px}
  .describe{grid-template-columns:1fr}
  .request__foot,.keyrow{flex-direction:column;align-items:flex-start}
  .table--plain .table__row{grid-template-columns:1fr 1fr;padding:12px 0}
  .table__cell--end{grid-column:2;justify-self:end}
  .logrow{grid-template-columns:96px 10px minmax(0,1fr)}
  .wizard__actions .btn{width:100%}
  .login{padding:16px}
  .login__card{padding:24px}
}

/* chat panel (spec 2026-09-04, section 7) */
.sidebar__item{position:relative}
.sidebar__dot{width:8px;height:8px;border-radius:50%;background:var(--terra);margin-left:auto;flex:none}
.sidebar__dot[hidden]{display:none}
button.sidebar__item{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}
.chat{position:fixed;top:0;right:0;bottom:0;width:380px;max-width:100%;z-index:60;display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--line)}
.chat[hidden]{display:none}
.chat__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.chat__log{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.chat__empty{font-size:14px}
.msg{max-width:88%;padding:10px 14px;border-radius:14px;background:var(--stone);white-space:pre-wrap;overflow-wrap:anywhere}
.msg--client{align-self:flex-end;background:var(--peach);color:var(--attention)}
.msg--system{align-self:center;max-width:100%;background:none;padding:2px 0;font-size:13px;color:var(--muted);text-align:center}
.msg__who{font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:2px}
.msg__body{font-size:14.5px}
.msg__meta{margin-top:4px;font-size:12px;color:var(--muted)}
.msg--client .msg__meta{color:var(--attention);opacity:.75}
.chat__form{padding:12px 18px 16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.chat__input{min-height:64px}
.chat__foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat__note--bad{color:var(--error);font-weight:500}

/* help in the wizard (spec section 6) */
.help-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.help-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px}
.help-card h3{font-family:var(--font-text);font-size:16px;font-weight:600;letter-spacing:0}
.help-card p{margin-top:2px;font-size:14px}
.banner .small{display:block;margin-top:4px}

/* on wide screens the page steps aside instead of hiding behind the panel */
@media (min-width:821px){
  body.has-chat .shell{padding-right:380px}
}
@media (max-width:820px){
  .chat{width:100%;border-left:0}
  /* the sidebar is a wrapped bar across the top here: the chat button sits in the row with
     the links instead of taking a line of its own */
  button.sidebar__item{width:auto}
  .sidebar__dot{margin-left:6px}
  .help-card{flex-direction:column;align-items:flex-start}
  .help-card .row{width:100%}
  .help-card .btn{flex:1}
}

/* service without a logo file: two-letter badge in the pair square */
.app-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--line);color:var(--ink);font-size:11px;font-weight:600;letter-spacing:.02em}
.integration-row .app-badge{width:22px;height:22px;font-size:10px}
.pair--lg .app-badge{width:38px;height:38px;font-size:14px}
.page-title .integration-row__icon{width:44px;height:44px}
