/* styles - ported from the FDP app then hacked on */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent:         #e91e63;
    --accent-hover:   #c2185b;
    --accent-glow:    rgba(233, 30, 99, 0.2);
    --accent-border:  rgba(233, 30, 99, 0.35);
    --accent-subtle:  rgba(233, 30, 99, 0.08);

    --bg:             #0d0f13;
    --bg-surface:     #13161c;
    --bg-raised:      #1a1e27;
    --bg-overlay:     #222733;

    --text-primary:   #e8edf5;
    --text-secondary: #9aadc7;
    --text-muted:     #5c6f8a;

    --border:         rgba(255,255,255,0.06);
    --border-hover:   rgba(255,255,255,0.12);
    --border-accent:  rgba(233, 30, 99, 0.3);

    --success:        #10b981;
    --error:          #f43f5e;
    --warning:        #f59e0b;
    --info:           #60a5fa;

    /* Legacy aliases - referenced by inline styles in partials */
    /* todo: rip these out once the inline styles stop using them */
    --primary-color:  #e91e63;
    --primary-hover:  #c2185b;
    --secondary-color:#ff4081;
    --success-color:  #10b981;
    --error-color:    #f43f5e;
    --warning-color:  #f59e0b;
    --bg-color:       #0d0f13;
    --sidebar-bg:     #13161c;
    --sidebar-hover:  #1a1e27;
    --panel-bg:       #13161c;
    --card-bg:        #1a1e27;
    --input-bg:       #0d0f13;
    --border-color:   rgba(233, 30, 99, 0.25);
    --text-light:     #e8edf5;
    /* --text-dark:      #323130; */

    --radius-sm:      8px;
    --radius:         12px;
    --radius-lg:      16px;

    --shadow-sm:      0 1px 2px rgba(0,0,0,0.3);
    --shadow:         0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.45);
    --shadow-accent:  0 0 20px rgba(233, 30, 99, 0.08);

    --font-heading:   'Space Grotesk', sans-serif;
    --font-body:      'Inter', sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    /* font-size: 15px; */
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ── Layout ── */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── SIdebar ── */
.sidebar {
    width: 230px;
    /* width: 260px; */
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.logo h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.3px;
}

.nav-menu {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
}

.nav-menu li {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    user-select: none;
    position: relative;
}

.nav-link:hover {
    background: var(--bg-raised);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-link .icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-toast {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.sidebar-toast:empty {
    display: none;
    margin-bottom: 0;
}

.sidebar-toast-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.4;
    border-left: 3px solid transparent;
    animation: toast-in 0.25s ease;
    word-break: break-word;
}

.sidebar-toast-item.success {
    background: rgba(16, 185, 129, 0.12);
    border-left-color: var(--success);
    color: var(--success);
}

.sidebar-toast-item.error {
    background: rgba(244, 63, 94, 0.12);
    border-left-color: var(--error);
    color: var(--error);
}

.sidebar-toast-item.info {
    background: rgba(233, 30, 99, 0.1);
    border-left-color: var(--accent);
    color: var(--accent);
}

.sidebar-toast-item.fade-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.sidebar-footer p {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
}

/* ── MAin content ── */
.main-content {
    flex: 1;
    /* padding: 40px 48px; */
    overflow-y: auto;
    padding: 32px 36px;
    background: var(--bg);
}

/* ── Panels ── */
.panel {
    display: none;
    animation: panelIn 0.3s ease-out;
}

.panel.active {
    display: block;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.panel-header p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.panel-body {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ── FOrm styles ── */
.form-group {
    margin-bottom: 18px;
    /* margin-bottom: 16px; */
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-body);
    background: var(--bg-raised);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/*
.button {
    display:inline-block;
    padding:10px 16px;
    border-radius:8px;
}
*/
/* ── BUttons ── */
.btn {
    display: inline-flex;
    /* letter-spacing: 0.3px; */
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--bg-overlay);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    /* background: var(--accent-subtle); */
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.btn-secondary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.12);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--error);
}

.btn-copy {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-copy:hover {
    background: var(--accent-hover);
}

.btn-sm {
    font-size: 12px;
    padding: 5px 12px;
}

/* ── MEssages ── */
.message {
    padding: 12px 16px;
    /* padding: 10px 14px; */
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
    border-left: 3px solid transparent;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
    display: block;
}

.message.error {
    background: rgba(244, 63, 94, 0.1);
    border-left-color: var(--error);
    color: var(--error);
    display: block;
}

.message.info {
    background: rgba(233, 30, 99, 0.08);
    border-left-color: var(--accent);
    color: var(--accent);
    display: block;
}

/* ── Result/Card Boxes ── */
.result-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}

.result-box:hover {
    border-color: var(--border-hover);
}

.result-box h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.config-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    flex-direction: column;
}

.detail-row .label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row .value {
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-mono);
}

.value-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--transition);
}

.value-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.result-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

/* ── Customer Selector ── */
.customer-selector {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.customer-selector h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.selector-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.customer-dropdown {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aadc7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.customer-dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.customer-dropdown option {
    background: var(--bg-raised);
    color: var(--text-primary);
}

/* ── CUstomer cards ── */
/* todo: are these still used anywhere now that the checklist is template-driven? */
.customer-card {
    padding: 16px 20px;
    /* padding: 14px 18px; */
    margin-bottom: 10px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.customer-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.customer-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.customer-card:hover::before {
    opacity: 1;
}

.customer-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.customer-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 3px 0;
}

.customer-card .status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
}

.customer-card .status.active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.customer-card .status.expired {
    background: rgba(244, 63, 94, 0.12);
    color: var(--error);
}

/* ── Section ── */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

.customer-list {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.customer-list h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ── Placeholder ── */
/* todo: is .placeholder still referenced? */
.placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.placeholder .icon-large {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.placeholder h3 {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 13px;
}

/*
.overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
}
*/
/* ── MOdal overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* background: rgba(0,0,0,0.6); */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlayIn 0.2s ease-out;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/*
.dialog {
    background:var(--bg-surface);
    border-radius:14px;
    max-width:600px;
}
*/
/* ── MOdal panel ── */
.modal-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-panel-wide {
    max-width: 1100px;
}

.modal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
}

.modal-panel-header h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.modal-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: all var(--transition);
}

.modal-panel-close:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

/*
.dialog-body {
    padding:20px;
    overflow:auto;
}
*/
.modal-panel-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* ── USer management ── */
.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    /* padding: 10px 14px; */
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: border-color var(--transition);
}

.user-row:hover {
    border-color: var(--border-hover);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
}

/*
.role-tag {
    font-size:10px;
    padding:2px 8px;
    border-radius:4px;
}
*/
.user-badge {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-overlay);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge-admin {
    background: rgba(233, 30, 99, 0.12);
    color: var(--accent);
}

.user-actions {
    display: flex;
    gap: 6px;
}

/* ── TAbles (inside modals/result-boxes) ── */
table {
    font-family: var(--font-body);
    font-size: 13px;
    /* font-size: 12px; */
}

table th {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

table td {
    color: var(--text-secondary);
}

table tr:hover td {
    color: var(--text-primary);
}

/* ── SPec badges ── */
.spec-badge {
    display: inline-block;
    /* display: inline-flex; */
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    background: var(--bg-overlay);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/*
.plan-grid {
    display:flex;
    flex-wrap:wrap;
    gap:16px;
}
*/
/* ── PLan tiles ── */
.plan-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    /* grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); */
    gap: 12px;
    margin-top: 16px;
}

.plan-tile {
    background: var(--bg-raised);
    /* background: var(--bg-surface); */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.plan-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.plan-tile:hover.azure { border-color: rgba(96,165,250,0.3); box-shadow: 0 0 0 1px rgba(96,165,250,0.1), 0 8px 24px rgba(96,165,250,0.06); }
.plan-tile:hover.aws { border-color: rgba(249,115,22,0.3); box-shadow: 0 0 0 1px rgba(249,115,22,0.1), 0 8px 24px rgba(249,115,22,0.06); }
.plan-tile:hover.gcp { border-color: rgba(52,211,153,0.3); box-shadow: 0 0 0 1px rgba(52,211,153,0.1), 0 8px 24px rgba(52,211,153,0.06); }

.plan-tile-bar {
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.plan-tile-bar.azure { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.plan-tile-bar.aws { background: linear-gradient(90deg, #f97316, #ea580c); }
.plan-tile-bar.gcp { background: linear-gradient(90deg, #34d399, #10b981); }
.plan-tile-bar.unknown { background: linear-gradient(90deg, #6b7280, #4b5563); }

.plan-tile-body {
    padding: 14px 16px;
}
.plan-tile-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.plan-tile-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-tile-platform {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}
.plan-tile-platform.azure { background: rgba(96,165,250,0.15); color: #60a5fa; }
.plan-tile-platform.aws { background: rgba(249,115,22,0.15); color: #f97316; }
.plan-tile-platform.gcp { background: rgba(52,211,153,0.15); color: #34d399; }
.plan-tile-platform.unknown { background: rgba(107,114,128,0.15); color: #9ca3af; }

.plan-tile-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    opacity: 0;
    transition: all 0.15s;
}
.plan-tile:hover .plan-tile-delete { opacity: 1; }
.plan-tile-delete:hover { color: var(--error); background: rgba(244,63,94,0.1); }

/* ── REsponsive ── */
@media (max-width: 768px) {
    .sidebar { width: 70px; }
    /* .sidebar { width: 60px; } */
    .logo h2, .nav-link span:not(.icon), .sidebar-footer p { display: none; }
    .nav-link { justify-content: center; padding: 12px; }
    .nav-link.active::before { display: none; }
    .main-content { padding: 20px 16px; }
}

/* ── NFdc checklist layouts ── */

/*
.fancy-select {
    width:100%;
    padding:11px 14px;
    border-radius:8px;
}
*/
.pretty-select {
    width: 100%;
    padding: 10px 14px;
    /* padding: 11px 14px; */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aadc7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pretty-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.pretty-select option { background: var(--bg-raised); color: var(--text-primary); }

/* .two-column { display:grid; grid-template-columns:1fr 1fr; } */
.two-column { display: flex; gap: 20px; }
.two-column .column { flex: 1; }

/* Compact form grid for checklist: 2 main columns + narrow column for Yes/No controls */
.form-grid { display: grid; grid-template-columns: 1fr 1fr 0.6fr; gap: 12px 16px; align-items: start; }
.form-grid .narrow { grid-column: 3; justify-self: start; max-width: 240px; }
.form-grid .wide { grid-column: 1 / span 2; }
.form-grid .label-sm { font-size: 12px; }

/* Readonly inputs on the checklist look distinct from editable ones */
.form-group input[readonly] {
    background: var(--bg);
    color: var(--text-secondary);
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .two-column { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .narrow, .form-grid .wide { grid-column: 1; max-width: none; }
}

/*
.tooltip {
    position:relative;
    display:inline-block;
    cursor:help;
}
*/
/* ── FIeld hint widget ── */
.hint-wrap {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}
.hint-icon {
    width: 18px;
    height: 18px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.15s;
}
.hint-icon:hover,
.hint-wrap.pinned .hint-icon {
    color: var(--accent);
    transform: scale(1.08);
}
.hint-icon svg { display: block; }
.hint-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 480px;
    /* min-width: 420px; */
    max-width: 720px;
    width: max-content;
    padding: 12px 32px 12px 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 50;
}
.hint-wrap:hover .hint-popup { opacity: 1; }
.hint-wrap.pinned .hint-popup {
    opacity: 1;
    pointer-events: auto;
    user-select: text;
    border-color: var(--accent-border);
}
.hint-close {
    position: absolute;
    top: 2px;
    right: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    display: none;
}
.hint-wrap.pinned .hint-close { display: block; }
.hint-close:hover { color: var(--accent); }
.hint-code-inline {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    padding: 1px 5px;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 3px;
    white-space: nowrap;
}
/*
.code-block {
    font-family:monospace;
    padding:10px;
    background:#0d0f13;
}
*/
.hint-code-block {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    margin: 6px 0;
    padding: 10px 12px;
    background: #0d0f13;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 4px;
    white-space: pre;
    overflow-x: auto;
}
.hint-code-block code {
    font-family: inherit;
    background: transparent;
    padding: 0;
    border: 0;
    color: inherit;
}
