:root {
    --bg: #f4efe6;
    --panel: rgba(255, 251, 245, 0.92);
    --panel-strong: #fffdf8;
    --text: #1f2933;
    --muted: #5d6b78;
    --line: rgba(77, 94, 108, 0.16);
    --accent: #c96a2b;
    --accent-strong: #8f3f15;
    --accent-soft: rgba(201, 106, 43, 0.12);
    --success: #1d6f56;
    --success-bg: rgba(29, 111, 86, 0.12);
    --error: #a23434;
    --error-bg: rgba(162, 52, 52, 0.12);
    --shadow: 0 24px 60px rgba(87, 62, 34, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", "Hiragino Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(201, 106, 43, 0.18), transparent 30%),
        linear-gradient(160deg, #f8f2e8 0%, #efe4d4 48%, #f3ede4 100%);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #db8e4a);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0.85rem 1.35rem;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(201, 106, 43, 0.2);
}

button:hover,
.button-link:hover {
    text-decoration: none;
    filter: brightness(1.03);
}

.secondary-button {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    padding: 0.85rem 1rem;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(201, 106, 43, 0.2);
    border-color: rgba(201, 106, 43, 0.5);
}

.shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(77, 94, 108, 0.08);
    padding: 0.2rem;
}

.brand-link {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--text);
}

.header-nav a.is-active {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    text-decoration: none;
}

.current-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.shell-main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shell-main-wide {
    width: min(1500px, calc(100% - 2rem));
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    padding: 1.4rem;
}

.hero-grid,
.content-grid,
.summary-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
    align-items: stretch;
}

.content-grid,
.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card h2 {
    margin: 0.35rem 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-list {
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0 0;
}

.meta-list div,
.result-grid div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.auth-card,
.external-card {
    align-self: start;
}

.auth-card.wide,
.single-column .card {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.stack-form.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.stack-form.two-column button {
    grid-column: 1 / -1;
    justify-self: start;
}

.stack-form label {
    display: grid;
    gap: 0.45rem;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.check-row {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.check-row input {
    width: auto;
}

.folder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}

.folder-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(252, 240, 228, 0.92));
    border: 1px solid rgba(201, 106, 43, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.folder-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(201, 106, 43, 0.16);
}

.folder-card.compact {
    min-height: 110px;
}

.explorer-shell {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.82fr);
    align-items: start;
}

.explorer-sidebar,
.explorer-main,
.sidebar-group,
.nav-list,
.content-name {
    display: grid;
    gap: 0.8rem;
}

.explorer-sidebar {
    padding-right: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(87, 62, 34, 0.08);
}

.nav-link.is-active {
    border-color: rgba(201, 106, 43, 0.32);
    background: rgba(255, 248, 241, 0.96);
}

.breadcrumb-trail {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 0.94rem;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 700;
}

.breadcrumb-separator {
    color: var(--muted);
    opacity: 0.45;
    font-size: 0.9em;
    user-select: none;
}

.explorer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.toolbar-summary,
.toolbar-forms,
.action-cell {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.action-cell {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.explorer-row:hover .action-cell,
.explorer-row:focus-within .action-cell {
    opacity: 1;
    pointer-events: auto;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 248, 241, 0.96);
    border: 1px solid rgba(201, 106, 43, 0.16);
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 700;
}

.mini-inline-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.mini-inline-form input[type="text"] {
    min-width: 220px;
}

.content-entry {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.explorer-table {
    margin-top: 0;
    table-layout: auto;
}

.explorer-table th:not(:first-child),
.explorer-table td:not(:first-child) {
    white-space: nowrap;
    width: 1%;
}

.explorer-table th:first-child {
    width: 100%;
}

.explorer-row:hover td {
    background: rgba(255, 252, 247, 0.7);
}

.explorer-row-parent td {
    background: rgba(244, 239, 230, 0.5);
}

.explorer-row-folder > td {
    background: rgba(255, 248, 241, 0.38);
}

.explorer-row-folder .content-name a {
    font-weight: 600;
}

.explorer-table .item-icon-folder {
    width: 1.7rem;
    height: 1.2rem;
}

.explorer-table .item-icon-file {
    width: 1.1rem;
    height: 1.4rem;
}

.item-icon {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.item-icon-folder,
.item-icon-up {
    width: 1.45rem;
    height: 1rem;
    border-radius: 0.24rem;
}

.item-icon-folder {
    background: linear-gradient(180deg, #f5c876, #da9831);
}

.item-icon-folder::before {
    content: "";
    position: absolute;
    left: 0.12rem;
    top: -0.18rem;
    width: 0.62rem;
    height: 0.28rem;
    border-radius: 0.18rem 0.18rem 0 0;
    background: #f9dca4;
}

.item-icon-folder--view {
    background: linear-gradient(180deg, #c8c2bb, #a29890);
}

.item-icon-folder--view::before {
    background: #dbd6d0;
}

.item-icon-folder--file-request {
    background: linear-gradient(180deg, #7ec8f0, #3a9fd4);
}

.item-icon-folder--file-request::before {
    background: #b0dff5;
}

.item-icon-folder--file-request.item-icon-folder--view {
    background: linear-gradient(180deg, #b0c8d8, #7aa8c4);
}

.item-icon-folder--file-request.item-icon-folder--view::before {
    background: #ccdde8;
}

.item-icon-file {
    width: 1rem;
    height: 1.25rem;
    border-radius: 0.18rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(77, 94, 108, 0.2);
}

.item-icon-file::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    border-style: solid;
    border-width: 0 0.45rem 0.45rem 0;
    border-color: transparent rgba(201, 106, 43, 0.18) transparent transparent;
}

.item-icon-file::after {
    content: "";
    position: absolute;
    left: 0.18rem;
    right: 0.18rem;
    bottom: 0.18rem;
    height: 0.08rem;
    background: rgba(77, 94, 108, 0.28);
    box-shadow:
        0 -0.22rem 0 rgba(77, 94, 108, 0.22),
        0 -0.44rem 0 rgba(77, 94, 108, 0.16);
}

.item-icon-up {
    border: 1px solid rgba(77, 94, 108, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.item-icon-up::before {
    content: "";
    position: absolute;
    left: 0.46rem;
    top: 0.22rem;
    width: 0.38rem;
    height: 0.38rem;
    border-left: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
}

.icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.icon-action:hover {
    text-decoration: none;
    border-color: rgba(201, 106, 43, 0.32);
    background: rgba(255, 248, 241, 0.98);
    color: var(--accent-strong);
}

.icon-action-danger:hover {
    border-color: rgba(162, 52, 52, 0.32);
    background: rgba(255, 245, 244, 0.98);
    color: var(--error);
}

.icon-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(31, 41, 51, 0.92);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 20;
}

.icon-action[data-tooltip]:hover::after {
    opacity: 1;
}

.action-cell {
    flex-wrap: nowrap;
}

.action-cell form {
    display: contents;
}

.icon-action::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--muted);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: background-color 0.15s;
    flex-shrink: 0;
}

.icon-action:hover::before {
    background-color: var(--accent-strong);
}

.icon-action-danger:hover::before {
    background-color: var(--error);
}

.icon-open::before {
    mask-image: url('/static/icons/open.svg');
    -webkit-mask-image: url('/static/icons/open.svg');
}

.icon-download::before {
    mask-image: url('/static/icons/download.svg');
    -webkit-mask-image: url('/static/icons/download.svg');
}

.icon-share::before {
    mask-image: url('/static/icons/share.svg');
    -webkit-mask-image: url('/static/icons/share.svg');
}

.icon-delete::before {
    mask-image: url('/static/icons/delete.svg');
    -webkit-mask-image: url('/static/icons/delete.svg');
}

.icon-info::before {
    mask-image: url('/static/icons/info.svg');
    -webkit-mask-image: url('/static/icons/info.svg');
}

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.type-badge-normal {
    background: rgba(77, 94, 108, 0.1);
    color: var(--muted);
}

.type-badge-special {
    background: rgba(201, 106, 43, 0.14);
    color: var(--accent-strong);
}

.type-badge svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.scan-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    background: rgba(29, 111, 86, 0.12);
    color: var(--success);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.explorer-table th,
.explorer-table td {
    padding: 1.1rem 0.75rem;
    vertical-align: middle;
}

.danger-button {
    background: linear-gradient(135deg, #b93a36, #df5a4f);
    color: #fff;
    border-color: transparent;
}

.danger-button.secondary-button,
.danger-button.button-link.secondary-button {
    background: rgba(162, 52, 52, 0.12);
    color: var(--error);
    border: 1px solid rgba(162, 52, 52, 0.22);
    box-shadow: none;
}

.action-dialog {
    width: min(560px, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
}

.action-dialog-wide {
    width: min(860px, calc(100% - 2rem));
}

.submission-detail-grid {
    display: grid;
    gap: 0.6rem;
}

.submission-detail-row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
    align-items: baseline;
}

.submission-detail-row dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.submission-detail-row dd {
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.submission-detail-row dd:empty::after {
    content: "—";
    color: var(--muted);
}

.action-dialog::backdrop {
    background: rgba(31, 41, 51, 0.42);
    backdrop-filter: blur(4px);
}

.dialog-shell {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.98);
    box-shadow: 0 28px 60px rgba(31, 41, 51, 0.22);
}

.dialog-header,
.dialog-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dialog-close {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    box-shadow: none;
    font-size: 1.5rem;
    line-height: 1;
}

.dialog-close:hover {
    filter: none;
    border-color: rgba(201, 106, 43, 0.28);
}

.dialog-actions {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
}

.warning-block {
    border-color: rgba(162, 52, 52, 0.24);
    background: rgba(255, 245, 244, 0.96);
}

.list-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.list-card.emphasis {
    border-color: rgba(201, 106, 43, 0.35);
    background: rgba(255, 248, 241, 0.92);
}

.list-card-mention {
    border-color: rgba(201, 106, 43, 0.28);
    background: rgba(255, 251, 245, 0.96);
}

.activity-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.folder-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.folder-meta,
.subtle,
.label {
    color: var(--muted);
}

.comment-form-toolbar,
.notification-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-form-toolbar {
    justify-content: space-between;
}

.mention-input-shell {
    display: grid;
    gap: 0.75rem;
}

.mention-hidden-input {
    display: none;
}

.mention-editor {
    min-height: 7.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    cursor: text;
}

.mention-editor:focus {
    outline: 2px solid rgba(201, 106, 43, 0.2);
    border-color: rgba(201, 106, 43, 0.5);
}

.mention-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    opacity: 0.7;
}

.mention-chip {
    margin: 0.12rem 0.38rem 0.12rem 0;
    vertical-align: middle;
}

.mention-popover {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.mention-popover[hidden] {
    display: none;
}

.mention-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mention-popover-list {
    display: grid;
    gap: 0.65rem;
    max-height: 18rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.section-heading,
.folder-hero,
.hero-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.table-wrap .data-table {
    margin-top: 0;
    min-width: 920px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
}

.notice,
.result-panel {
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success);
}

.notice.error,
.inline-error {
    background: var(--error-bg);
    color: var(--error);
}

.inline-error {
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.hidden {
    display: none;
}

.result-panel {
    display: grid;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    margin-top: 1rem;
}

.result-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.empty-state {
    color: var(--muted);
    margin: 0;
}

.plain-list {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.choice-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-group {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.choice-group h3 {
    margin: 0;
}

.choice-subgroup {
    display: grid;
    gap: 0.6rem;
}

.choice-subgroup h4 {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.choice-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.choice-card input {
    width: auto;
}

.choice-card small {
    color: var(--muted);
}

.preformatted {
    white-space: pre-wrap;
    margin: 0;
    font: inherit;
}

.mfa-panel {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.single-column {
    display: grid;
}

.hero-text {
    max-width: 58rem;
    color: var(--muted);
    line-height: 1.75;
}

.section-stack {
    display: grid;
    gap: 1.25rem;
}

.dashboard-hero,
.detail-hero {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    align-items: start;
    overflow: hidden;
}

.dashboard-hero {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(248, 237, 223, 0.9));
}

.hero-intro {
    display: grid;
    gap: 1rem;
}

.hero-intro h1,
.action-panel h2,
.metric-card h2,
.card h2,
.card h3 {
    margin-top: 0;
}

.hero-stats,
.tag-row,
.action-list,
.detail-list,
.journey-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stat-chip,
.tag,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(201, 106, 43, 0.18);
    color: var(--accent-strong);
}

.stat-chip strong {
    color: var(--text);
    font-size: 1rem;
}

.status-mention {
    background: rgba(201, 106, 43, 0.14);
    color: var(--accent-strong);
}

.action-panel {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(201, 106, 43, 0.12);
}

.action-list {
    display: grid;
}

.action-tile {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(77, 94, 108, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-tile:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(87, 62, 34, 0.1);
}

.action-tile span,
.meta-banner,
.metric-note {
    color: var(--muted);
}

.meta-banner {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(249, 243, 235, 0.9);
}

.metric-grid,
.dashboard-dual,
.relationship-grid {
    display: grid;
    gap: 1.25rem;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.metric-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1;
}

.metric-value-small {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.dashboard-layout,
.detail-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
    align-items: start;
}

.dashboard-dual,
.relationship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relationship-block {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.spotlight-card {
    background:
        linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(247, 235, 218, 0.9));
}

.issued-link-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 1rem 1.5rem;
    align-items: start;
}

.issued-link-url,
.issued-link-expiry {
    display: block;
    max-width: 100%;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.issued-link-password {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.section-note {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.compact-form input,
.compact-form button {
    min-height: 3rem;
}

.option-stack {
    align-content: start;
}

.inline-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inline-choice span {
    font-weight: 600;
}

.detail-list {
    display: grid;
}

.info-block {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.tag {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--text);
}

.folder-guide {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.2rem;
}

.admin-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.guide-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--muted);
}

.guide-card strong {
    color: var(--text);
}

.guide-card-root {
    border-color: rgba(201, 106, 43, 0.28);
    background: rgba(255, 248, 241, 0.92);
}

.guide-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    background: rgba(201, 106, 43, 0.12);
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-badge {
    background: rgba(77, 94, 108, 0.12);
    color: var(--text);
}

.status-active,
.status-approved,
.status-approve,
.status-accepted {
    background: rgba(29, 111, 86, 0.14);
    color: var(--success);
}

.status-pending,
.status-partial-approved,
.status-invited,
.status-admin,
.status-sysadmin {
    background: rgba(201, 106, 43, 0.14);
    color: var(--accent-strong);
}

.status-rejected,
.status-cancelled,
.status-withdrawn,
.status-locked,
.status-inactive,
.status-reject {
    background: rgba(162, 52, 52, 0.14);
    color: var(--error);
}

.status-member {
    background: rgba(77, 94, 108, 0.12);
    color: var(--text);
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.card-divider {
    height: 1px;
    background: var(--line);
    margin: 1.4rem 0;
}

.table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot-root {
    background: rgba(201, 106, 43, 0.9);
}

.legend-dot-child {
    background: rgba(77, 94, 108, 0.55);
}

.folder-row-root td:first-child {
    position: relative;
}

.folder-row-root td:first-child::before,
.folder-row-child td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 3px;
    border-radius: 999px;
}

.folder-row-root td:first-child::before {
    background: rgba(201, 106, 43, 0.7);
}

.folder-row-child td:first-child::before {
    background: rgba(77, 94, 108, 0.3);
}

.folder-tree-table td {
    vertical-align: middle;
}

.tree-level-badge {
    display: inline-flex;
    min-width: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(77, 94, 108, 0.1);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.tree-name {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-left: calc(var(--depth, 0) * 1.15rem);
}

.tree-meta {
    padding-left: calc(1.7rem + (var(--depth, 0) * 1.15rem));
}

.folder-search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.folder-search-input {
    flex: 1;
    max-width: 28rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-size: 0.95rem;
}

.folder-search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.folder-search-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.folder-search-count {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}

.folder-search-empty {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.folder-search-empty.is-visible {
    display: block;
}

/* ── Permission picker ─────────────────────────────── */

.perm-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.perm-picker-role {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.perm-picker-col > .section-note {
    margin: 0 0 0.6rem;
}

.perm-picker {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    min-height: 3rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.perm-picker:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 106, 43, 0.15);
}

.perm-chips-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    min-height: 3rem;
    align-items: center;
    cursor: text;
}

.perm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.3rem 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 14rem;
    flex-shrink: 0;
}

.perm-chip--user {
    background: rgba(201, 106, 43, 0.12);
    color: var(--accent-strong);
}

.perm-chip--group {
    background: rgba(77, 94, 108, 0.12);
    color: var(--muted);
}

.perm-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perm-chip-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.55;
    box-shadow: none;
}

.perm-chip-remove:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    filter: none;
}

.perm-search-input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    min-width: 8rem;
    flex: 1;
    padding: 0.2rem 0;
}

.perm-search-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.perm-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 15rem;
    overflow-y: auto;
}

.perm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    user-select: none;
}

.perm-dropdown-item:hover,
.perm-dropdown-item[aria-selected="true"] {
    background: var(--accent-soft);
}

.perm-dropdown-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.perm-dropdown-item-sub {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.3;
}

.perm-dropdown-empty {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.card.has-open-dropdown {
    position: relative;
    z-index: 10;
}

.perm-type-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    white-space: nowrap;
}

.perm-type-badge--user {
    background: rgba(201, 106, 43, 0.15);
    color: var(--accent-strong);
}

.perm-type-badge--group {
    background: rgba(77, 94, 108, 0.12);
    color: var(--muted);
}

.journey-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-journey {
    margin-top: 0.8rem;
}

.journey-step {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--muted);
}

.journey-step strong {
    color: var(--text);
}

.journey-step.is-active {
    border-color: rgba(201, 106, 43, 0.35);
    background: rgba(255, 248, 241, 0.96);
}

.journey-step.is-complete {
    border-color: rgba(29, 111, 86, 0.24);
    background: rgba(242, 250, 246, 0.96);
}

.invitation-note {
    background: rgba(255, 248, 241, 0.86);
}

.admin-bridge {
    display: grid;
    gap: 1rem;
}

.admin-page-stack {
    display: grid;
    gap: 1.25rem;
}

.admin-control-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-audit-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
}

.cell-stack {
    display: grid;
    gap: 0.2rem;
}

.cell-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-data-table th:nth-child(2),
.admin-data-table td:nth-child(2),
.admin-data-table th:last-child,
.admin-data-table td:last-child {
    min-width: 220px;
}

.member-editor-shell {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.64);
}

.member-selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.member-token-list-compact {
    max-height: 360px;
    overflow: auto;
    padding-right: 0.35rem;
}

.member-token {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    flex: 1 1 280px;
    min-width: 240px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.member-token-copy,
.member-candidate-copy {
    display: grid;
    gap: 0.2rem;
}

.member-token-copy span {
    color: var(--muted);
}

.member-token-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-token-remove,
.member-candidate {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: none;
}

.member-token-remove {
    min-height: 2.3rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.92rem;
}

.member-token-remove:hover,
.member-candidate:hover {
    filter: none;
    text-decoration: none;
    border-color: rgba(201, 106, 43, 0.3);
    background: rgba(255, 248, 241, 0.98);
}

.member-candidate-selected,
.member-candidate-selected:hover {
    border-color: rgba(201, 106, 43, 0.42);
    background: rgba(255, 248, 241, 0.98);
    box-shadow: inset 0 0 0 1px rgba(201, 106, 43, 0.14);
}

.member-dialog-shell {
    gap: 1.25rem;
}

.member-dialog-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.member-dialog-panel {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.member-candidate-list {
    display: grid;
    gap: 0.75rem;
    max-height: 360px;
    overflow: auto;
    padding-right: 0.35rem;
}

.member-candidate {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    text-align: left;
    cursor: pointer;
}

.member-candidate-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(201, 106, 43, 0.12);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.settings-section {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.settings-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    align-items: start;
}

.settings-side {
    display: grid;
    gap: 1rem;
}

.settings-preview {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.system-logo-preview,
.system-logo-empty {
    width: 100%;
    min-height: 180px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.system-logo-preview {
    object-fit: contain;
    padding: 1rem;
}

.system-logo-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.settings-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-filter-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit-table code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-cell {
    display: grid;
    gap: 0.35rem;
}

.audit-details summary {
    cursor: pointer;
    color: var(--accent-strong);
    font-weight: 700;
}

.choice-card-user {
    align-content: start;
}

.drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(201, 106, 43, 0.06);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.drop-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.drop-overlay-card {
    display: grid;
    gap: 0.6rem;
    place-items: center;
    padding: 3rem 4.5rem;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.97);
    border: 2px dashed var(--accent);
    box-shadow: 0 28px 60px rgba(87, 62, 34, 0.18);
    pointer-events: none;
}

.drop-overlay-arrow {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent);
}

.upload-progress {
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 220px;
}

.upload-progress.is-active {
    display: flex;
}

.progress-bar-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(201, 106, 43, 0.15);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #db8e4a);
    width: 0%;
    transition: width 0.25s ease;
}

.upload-progress.is-error .progress-bar-fill {
    background: linear-gradient(90deg, var(--error), #df5a4f);
}

.name-fields-group {
    display: grid;
    gap: 0.65rem;
}

.field-req-note {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 0.3rem;
}

.field-error-msg {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
}

.field-error-msg.is-visible {
    display: block;
}

.input-error {
    border-color: var(--error) !important;
    background: rgba(162, 52, 52, 0.04) !important;
}

@keyframes shake-x {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(2px); }
}

.field-shake {
    animation: shake-x 0.34s ease;
}

.file-drop-zone {
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    padding: 1.2rem 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.15s, background 0.15s;
}

.file-drop-zone.has-error {
    border-color: var(--error);
    border-style: solid;
    background: rgba(162, 52, 52, 0.03);
}

.file-drop-zone.is-drag-over {
    border-color: var(--accent);
    background: rgba(255, 248, 241, 0.85);
    border-style: solid;
}

.file-drop-empty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.file-drop-hint {
    color: var(--muted);
    font-size: 0.875rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    border: 1px solid var(--line);
    font-size: 0.875rem;
}

.file-list-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: color 0.12s, background 0.12s;
}

.file-list-remove:hover {
    color: var(--error);
    background: rgba(162, 52, 52, 0.08);
}

.file-drop-add {
    margin-top: 0.7rem;
}

.upload-success-card[hidden] {
    display: none;
}

.upload-success-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem;
    background: rgba(11, 223, 80, 0.08);
    border: 1px solid rgba(11, 223, 80, 0.3);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.upload-success-card strong {
    color: #1a7a38;
    font-size: 1rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .content-grid,
    .summary-grid,
    .explorer-shell,
    .metric-grid,
    .dashboard-layout,
    .dashboard-dual,
    .detail-grid,
    .relationship-grid,
    .folder-guide,
    .admin-summary-grid,
    .admin-control-grid,
    .admin-audit-grid,
    .member-dialog-layout,
    .journey-list,
    .settings-grid,
    .audit-filter-grid,
    .stack-form.two-column,
    .split-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .shell-header,
    .header-actions,
    .section-heading,
    .folder-hero,
    .dashboard-hero,
    .detail-hero,
    .hero-actions,
    .member-selection-summary,
    .member-token {
        align-items: flex-start;
        flex-direction: column;
    }

    .current-user {
        align-items: flex-start;
    }

    .issued-link-grid {
        grid-template-columns: 1fr;
    }

    .inline-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-forms,
    .mini-inline-form,
    .action-cell,
    .dialog-header,
    .dialog-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .mini-inline-form input[type="text"] {
        min-width: 0;
    }

    .list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form-toolbar,
    .notification-badge-row,
    .mention-popover-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dialog-close {
        align-self: flex-end;
    }
}
