/* Every adjacent action in a group occupies an equal cell. */
@media(min-width:1051px){.header .navrow nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.header #navigation>a,.header .services-nav,.header .services-menu,.header .services-menu>summary{width:100%;min-width:0}.header #navigation>a,.header .services-menu>summary{padding-inline:5px}}
.header .nav-actions{display:grid;grid-auto-flow:column;grid-auto-columns:168px;gap:10px;align-items:stretch}.header .nav-actions>.button,.header .nav-actions>.theme-toggle,.header .nav-actions>.menu-toggle{width:168px;min-width:168px;max-width:168px;height:44px;min-height:44px;max-height:44px;border-radius:12px;padding:0 10px;line-height:1.3}.header .theme-toggle .theme-action-label{display:block;font-size:11px}.menu-label{font-size:11px;font-weight:500}.header .menu-toggle{align-items:center;justify-content:center;gap:8px}
.task-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-options>button{width:100%;min-width:0;height:56px;min-height:56px;padding:8px 10px;font-size:12px;line-height:1.35;white-space:normal;text-align:center}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:760px}.filters>button{width:100%;min-width:0;height:44px;min-height:44px;padding:8px;font-size:12px;line-height:1.35;white-space:normal}
.preview-toolbar{flex-wrap:wrap}.preview-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:400px;gap:8px}.preview-toolbar-actions>button{width:100%;max-width:none;min-width:0;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.35;text-align:center;background:var(--surface);color:var(--text);text-decoration:none}
.model-view-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.model-view-controls>button{width:100%;min-width:0;height:44px;min-height:44px;padding:6px;font-size:12px;line-height:1.35;white-space:normal}.model-view-controls>label{grid-column:1/-1}
.file-card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.file-card-actions>button,.file-card-actions>button:last-child{width:100%;min-width:0;min-height:44px;margin:0;padding:6px;font-size:12px;line-height:1.35;white-space:normal}
.receipt-number{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.receipt-number>strong{grid-column:1/-1}.receipt-number>button{width:100%;min-width:0;min-height:56px;padding:8px;font-size:12px;line-height:1.35;white-space:normal;justify-self:stretch;text-align:center}
.review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}.review-actions>.button{width:100%;min-width:0;min-height:56px}
.task-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px;gap:12px}.task-hero-actions>.button,.task-hero-actions>.text-link{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:52px;padding:14px 16px;font-size:12px;line-height:1.4;white-space:normal;text-align:center;border-radius:11px}.task-hero-actions>.text-link{border:1px solid var(--line);text-transform:none;letter-spacing:0}.task-hero-actions>.text-link:hover{background:var(--blue);color:var(--text)}.task-hero-actions>.button:hover{transform:none}
.section-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.section-shortcuts>a{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;padding:8px 4px;line-height:1.3;text-align:center;white-space:normal}
@media(min-width:701px) and (max-width:1199px){.header .nav-actions{grid-auto-columns:132px}.header .nav-actions>.button,.header .nav-actions>.theme-toggle,.header .nav-actions>.menu-toggle{width:132px;min-width:132px;max-width:132px;font-size:11px}}
@media(max-width:1050px){.header .menu-toggle{display:inline-flex}}
@media(max-width:700px){.header .navrow{gap:4px}.header .nav-actions{grid-auto-columns:56px;gap:4px}.header .nav-actions>.button,.header .nav-actions>.theme-toggle,.header .nav-actions>.menu-toggle{width:56px;min-width:56px;max-width:56px;height:44px;min-height:44px;max-height:44px;border-radius:11px;padding:0 4px}.header .nav-actions>.button{font-size:10px;line-height:1.2;white-space:normal;text-align:center}.header .theme-toggle .theme-action-label,.menu-label{display:none}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.model-view-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.review-actions{grid-template-columns:minmax(0,1fr)}.preview-toolbar-actions{max-width:none}}
@media(max-width:700px){.task-hero-actions{grid-template-columns:minmax(0,1fr)}.section-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.section-shortcuts>a{font-size:11px;min-height:40px;padding-inline:2px}}
