.my-organizer{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:8px;margin:0 0 14px;padding:11px;border:1px solid #e7eaf1;border-radius:14px;background:#f8f9fc}.my-organizer input{width:100%;min-height:42px;border:1px solid #dfe3eb;border-radius:10px;padding:0 11px;font:inherit;background:#fff}.my-filter-btn{min-height:42px;border:1px solid #dfe3eb;border-radius:10px;padding:0 11px;background:#fff;color:#667085;font-size:10px;font-weight:800;cursor:pointer}.my-filter-btn.active{background:#0f1527;color:#fff;border-color:#0f1527}.my-attention{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 14px}.my-attention span{padding:7px 9px;border-radius:999px;background:#eef7f4;color:#176b52;font-size:10px;font-weight:800}.my-attention .muted{background:#f1f3f7;color:#7b8495}.my-star{position:absolute;right:11px;bottom:11px;width:36px;height:36px;border:1px solid #e0e4ec;border-radius:10px;background:#fff;color:#9aa2b2;font-size:17px;line-height:1;cursor:pointer}.my-star.active{color:#b68000;background:#fff9df;border-color:#e7d077}.my-card-enhanced{position:relative;padding-bottom:54px!important}.my-no-results{padding:24px;text-align:center;border:1px dashed #dfe3eb;border-radius:13px;color:#858da0;font-size:12px}@media(max-width:620px){.my-organizer{grid-template-columns:1fr 1fr}.my-organizer input{grid-column:1/3;font-size:16px}.my-filter-btn{min-height:44px}.my-star{width:44px;height:44px}}


.saved-status{font-size:12px;line-height:1.7;color:#647087;background:#f4f6fb;border-radius:12px;padding:12px;margin:12px 0;overflow-wrap:anywhere}.saved-value{font-size:14px;color:#283752;font-weight:800;margin:8px 0}.saved-basis{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 12px;margin:14px 0 0;font-size:11px;line-height:1.6}.saved-basis dt{color:#7b8395}.saved-basis dd{margin:0;color:#46536b;overflow-wrap:anywhere}.saved-pending{font-size:11px;color:#846019;margin:12px 0 0}.saved-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px}.saved-empty-actions a{font-weight:800;color:#4d60df;text-decoration:underline}.empty p{line-height:1.7;font-size:12px}.formula-actions{flex-wrap:wrap}.new-draw-note{margin-top:10px;padding:10px 11px;border-radius:11px;background:#eef7f4;color:#176b52;font-size:11px;font-weight:700}.new-draw-note a{display:inline-block;margin-left:7px;color:#176b52;text-decoration:underline;font-weight:800}.saved-snapshot{padding:14px;border:1px solid #e3e8f2;border-radius:14px;margin-top:16px;background:#f8f9fc}.saved-snapshot strong{font-size:14px;color:#283752}

.formula-row a{color:inherit;text-decoration:none}.formula-row a:hover{text-decoration:underline}

/* Records come first in document/tab order; the account sidebar stays left on desktop. */
.my-grid .saved-records{grid-column:2;grid-row:1;min-width:0}
.my-grid .account-card{grid-column:1;grid-row:1;min-width:0;align-self:start}
#saved-records,#account-panel{scroll-margin-top:90px}
.saved-records .data-tabs button{min-height:44px}
.saved-records .formula-actions a{display:inline-flex;align-items:center;min-height:44px}
.saved-records .formula-actions a:focus-visible,.saved-records .toolbar a:focus-visible{outline:3px solid #5b6df6;outline-offset:3px}
.saved-action-note{font-size:11px;line-height:1.6;color:#647087;margin:10px 0 0}
@media(max-width:800px){
  .my-grid .saved-records,.my-grid .account-card{grid-column:1;grid-row:auto}
  .saved-records .section-title-row{align-items:flex-start;flex-wrap:wrap;gap:12px}
  .saved-records .toolbar{gap:12px}
  .saved-records .toolbar a{display:inline-flex;align-items:center;min-height:44px}
}

/* Long account addresses must wrap instead of pushing the status badge outside. */
.my-grid .signed-head>div{min-width:0;flex:1}
.my-grid .signed-head strong{display:block;overflow-wrap:anywhere}
.my-grid .signed-head>.badge{flex-shrink:0}
.my-grid .signed-actions [hidden]{display:none}

.record-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0}.record-usage{font-size:11px;color:#566078;overflow-wrap:anywhere;line-height:1.7}.record-delete{margin-top:12px;color:#9f2936;min-height:44px}.record-delete:focus-visible,#exportRecords:focus-visible{outline:3px solid #5b6df6;outline-offset:3px}.record-delete:disabled{opacity:.55;cursor:wait}

/* An empty tab leads with its first-record action, while export stays below it. */
.my-organizer[hidden],.my-attention[hidden]{display:none}
.saved-records .record-toolbar{margin-top:22px;padding-top:16px;border-top:1px solid #e7eaf1}
.saved-records .saved-status:empty{padding:0;margin:0}
