/*
 * Architect mode - toolbar, panels and dialogs over the 3D view.
 * Uses the tokens of src/brand/akrivas.css, which is loaded first.
 */

#ak-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 6px 12px 6px 56px;
	box-sizing: border-box;
	background: rgba(7, 19, 31, 0.86);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--ak-line);
	font-family: var(--ak-font);
	color: var(--ak-text);
	transform: translateY(-100%);
	transition: transform 0.35s ease;
}

#ak-topbar.ak-ready {
	transform: none;
}

.ak-project {
	min-width: 0;
	flex: 0 1 260px;
}

.ak-project-title {
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ak-project-sub {
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--ak-text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ak-toolbar {
	display: flex;
	align-items: stretch;
	gap: 6px;
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.ak-toolbar-end {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.ak-group {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 14px 6px 2px 6px;
	border-left: 1px solid var(--ak-line);
}

.ak-group:first-child {
	border-left: none;
}

.ak-group::before {
	content: attr(data-label);
	position: absolute;
	top: 0;
	left: 8px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ak-green);
}

#ak-topbar button,
#ak-panel button,
#ak-lock button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--ak-text);
	font: 600 12.5px/1 var(--ak-font);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

#ak-topbar button:hover,
#ak-panel button:hover {
	background: var(--ak-navy-600);
}

#ak-topbar button.ak-on {
	background: var(--ak-green);
	color: var(--ak-navy-900);
}

#ak-topbar button.ak-icon-only {
	padding: 0 7px;
}

#ak-topbar svg,
#ak-panel svg,
#ak-lock svg,
#ak-info svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ak-menu {
	position: relative;
}

.ak-menu > button svg:last-child {
	width: 14px;
	height: 14px;
	margin-left: -2px;
}

.ak-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	min-width: 210px;
	padding: 6px;
	background: var(--ak-navy);
	border: 1px solid var(--ak-line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.ak-dropdown[hidden] {
	display: none;
}

#ak-topbar .ak-dropdown button {
	justify-content: flex-start;
	width: 100%;
}

/* ------------------------------------------------------------ colours menu */

#ak-topbar .ak-colours {
	width: 236px;
	max-height: calc(100vh - 90px);
	overflow-y: auto;
	padding: 8px 10px 10px 10px;
}

.ak-dd-title {
	margin: 8px 2px 5px 2px;
	color: var(--ak-green);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ak-dd-title:first-child {
	margin-top: 2px;
}

#ak-topbar .ak-colours .ak-dd-item {
	height: 28px;
	padding: 0 10px;
	font-size: 12.5px;
}

/* colour scales and single colours: small tiles, the chosen one ringed */
.ak-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 2px;
}

.ak-swatches.ak-dim {
	opacity: 0.55;
}

#ak-topbar .ak-swatches button {
	width: 38px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 4px;
}

#ak-topbar .ak-swatches.ak-single button {
	width: 24px;
}

#ak-topbar .ak-swatches button.ak-on {
	box-shadow: 0 0 0 2px var(--ak-navy), 0 0 0 4px var(--ak-green);
}

.ak-pick {
	position: relative;
	width: 24px;
	height: 20px;
	border: 1px dashed rgba(255, 255, 255, 0.45);
	border-radius: 4px;
	background: conic-gradient(#e33, #ee3, #3e3, #3ee, #33e, #e3e, #e33);
	cursor: pointer;
	overflow: hidden;
}

.ak-pick input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.ak-segment {
	display: flex;
	gap: 4px;
}

#ak-topbar .ak-segment button {
	flex: 1;
	justify-content: center;
	height: 28px;
	padding: 0 6px;
	border-color: var(--ak-line);
	font-size: 12px;
}

/* the legend of a colour scale, above the coordinates */
#ak-legend {
	position: absolute;
	left: 14px;
	bottom: 50px;
	z-index: 18;
	width: 220px;
	padding: 8px 10px;
	box-sizing: border-box;
	pointer-events: none;
}

#ak-legend[hidden] {
	display: none;
}

.ak-legend-title {
	margin-bottom: 6px;
	color: var(--ak-green);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ak-legend-bar {
	height: 10px;
	border-radius: 3px;
}

.ak-legend-ends {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	color: var(--ak-text-2);
	font: 600 11px var(--ak-font);
	font-variant-numeric: tabular-nums;
}

.ak-legend-classes {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 11.5px;
}

.ak-legend-classes li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 3px 0;
}

.ak-legend-classes i {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

/* ------------------------------------------------------------------ cards */

.ak-card {
	background: rgba(11, 31, 51, 0.96);
	border: 1px solid var(--ak-line);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
	color: var(--ak-text);
	font-family: var(--ak-font);
}

#ak-panel {
	position: absolute;
	top: 72px;
	left: 14px;
	z-index: 19;
	width: 310px;
	padding: 14px 16px 12px 16px;
	border-top: 3px solid var(--ak-section, var(--ak-green));
}

#ak-panel[hidden],
#ak-info[hidden],
#ak-lock[hidden],
#ak-coords[hidden],
#ak-toast[hidden] {
	display: none;
}

.ak-panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ak-levels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--ak-text-2);
}

.ak-levels span {
	width: 100%;
}

#ak-panel .ak-levels button {
	height: 26px;
	padding: 0 9px;
	border: 1px solid var(--ak-line);
	border-radius: 13px;
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

#ak-panel label {
	display: block;
	margin: 10px 0;
	font-size: 12.5px;
	color: var(--ak-text-2);
}

#ak-panel label b {
	float: right;
	color: var(--ak-green-2);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

#ak-panel input[type="range"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	accent-color: var(--ak-section, var(--ak-green));
}

.ak-panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

#ak-panel .ak-panel-actions button {
	height: 30px;
	padding: 0 9px;
	border-color: var(--ak-line);
	font-size: 12px;
}

/* ------------------------------------------------------------------ info */

#ak-info {
	position: absolute;
	top: 72px;
	right: 14px;
	bottom: 60px;
	z-index: 21;
	width: min(360px, calc(100% - 28px));
	padding: 18px 20px;
	overflow-y: auto;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.55;
}

#ak-info .ak-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--ak-text-2);
	cursor: pointer;
}

.ak-info-title {
	padding-right: 28px;
	font-weight: 800;
	font-size: 16px;
}

.ak-info-sub {
	margin-top: 2px;
	color: var(--ak-text-2);
}

#ak-info dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin: 14px 0 4px 0;
}

#ak-info dt {
	color: var(--ak-text-2);
}

#ak-info dd {
	margin: 0;
}

#ak-info h4 {
	margin: 18px 0 6px 0;
	color: var(--ak-green);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

#ak-info ul {
	margin: 0;
	padding-left: 18px;
}

#ak-info li {
	margin: 3px 0;
}

#ak-info p {
	margin: 0 0 8px 0;
}

#ak-info a {
	color: var(--ak-green-2);
}

#ak-info code {
	font-family: Consolas, monospace;
	color: var(--ak-green-2);
}

#ak-info .ak-muted {
	margin-top: 14px;
	color: var(--ak-text-2);
	font-size: 11.5px;
}

/* ------------------------------------------------------------ position rail */

#ak-rail {
	position: absolute;
	right: 14px;
	top: 50%;
	z-index: 19;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 74px;
	padding: 10px 6px;
	box-sizing: border-box;
	border-top: 3px solid var(--ak-section, var(--ak-green));
	user-select: none;
}

#ak-rail[hidden] {
	display: none;
}

.ak-rail-title {
	color: var(--ak-section, var(--ak-green));
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

#ak-rail button {
	width: 44px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--ak-line);
	border-radius: 6px;
	background: var(--ak-navy-800);
	color: var(--ak-text);
	font: 700 12px var(--ak-font);
	cursor: pointer;
}

#ak-rail button:hover {
	border-color: var(--ak-section, var(--ak-green));
}

/* the vertical slider: top is the highest value, the fill runs from the thumb down */
.ak-rail-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 4px 0;
}

.ak-rail-end {
	color: var(--ak-text-2);
	font: 600 10px var(--ak-font);
	font-variant-numeric: tabular-nums;
}

.ak-vslider {
	position: relative;
	width: 28px;
	height: min(32vh, 260px);
	cursor: ns-resize;
	touch-action: none;
	outline: none;
}

.ak-vslider::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 6px;
	margin-left: -3px;
	border-radius: 3px;
	background: var(--ak-navy-900);
	box-shadow: inset 0 0 0 1px var(--ak-line);
}

.ak-vslider-fill {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 6px;
	margin-left: -3px;
	border-radius: 3px;
	background: var(--ak-section, var(--ak-green));
	opacity: 0.55;
}

.ak-vslider-thumb {
	position: absolute;
	left: 50%;
	width: 22px;
	height: 12px;
	margin: -6px 0 0 -11px;
	border-radius: 6px;
	background: var(--ak-section, var(--ak-green));
	box-shadow: 0 0 0 2px var(--ak-navy), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.ak-vslider:focus-visible .ak-vslider-thumb {
	box-shadow: 0 0 0 2px var(--ak-navy), 0 0 0 4px var(--ak-green-2);
}

.ak-rail-value {
	margin-top: 4px;
	color: var(--ak-green-2);
	font: 800 12px var(--ak-font);
	font-variant-numeric: tabular-nums;
	text-align: center;
	white-space: nowrap;
}

.ak-rail-hint {
	color: var(--ak-text-2);
	font-size: 9.5px;
	text-align: center;
}

/* ------------------------------------------------------------ small 3D window */

/* resized by the browser's own corner handle; right-to-left puts that handle at the
   lower left, the side away from the screen edge, and the window grows to the left */
#ak-inset {
	position: absolute;
	top: 72px;
	right: 14px;
	z-index: 19;
	width: 360px;
	height: 270px;
	min-width: 220px;
	min-height: 170px;
	max-width: calc(100% - 120px);
	max-height: calc(100% - 150px);
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	resize: both;
	direction: rtl;
	border-top: 3px solid var(--ak-section, var(--ak-green));
}

#ak-inset[hidden] {
	display: none;
}

/* the corner handle, in the office green so it is found */
#ak-inset::-webkit-resizer {
	background:
		linear-gradient(45deg, transparent 14%, var(--ak-section, var(--ak-green)) 14%, var(--ak-section, var(--ak-green)) 24%, transparent 24%),
		linear-gradient(45deg, transparent 40%, var(--ak-section, var(--ak-green)) 40%, var(--ak-section, var(--ak-green)) 50%, transparent 50%);
}

.ak-inset-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	direction: ltr;
}

.ak-inset-head {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 6px 4px 10px;
	color: var(--ak-section, var(--ak-green));
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ak-inset-head span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ak-inset-head button {
	width: 24px;
	height: 22px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: var(--ak-text);
	font: 700 14px/1 var(--ak-font);
	cursor: pointer;
}

.ak-inset-head button:hover {
	border-color: var(--ak-line);
	background: var(--ak-navy-600);
}

#ak-inset canvas {
	display: block;
	flex: 1;
	width: 100%;
	min-height: 0;
	cursor: grab;
	touch-action: none;
}

#ak-inset canvas:active {
	cursor: grabbing;
}

.ak-inset-hint {
	padding: 3px 10px 5px 18px;
	color: var(--ak-text-2);
	font-size: 9.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* the toggle at the right end of the section panel's heading */
#ak-panel .ak-head-toggle {
	margin-left: auto;
	height: 26px;
	padding: 0 6px;
	border-color: var(--ak-line);
}

#ak-panel .ak-head-toggle.ak-on {
	background: var(--ak-green);
	color: var(--ak-navy-900);
}

/* ------------------------------------------------------------ saved views */

#ak-saved {
	position: absolute;
	top: 72px;
	right: 14px;
	max-height: calc(100% - 132px);
	z-index: 21;
	width: min(380px, calc(100% - 28px));
	padding: 18px 18px 14px 18px;
	overflow-y: auto;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.5;
}

#ak-saved[hidden] {
	display: none;
}

#ak-saved .ak-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--ak-text-2);
	cursor: pointer;
}

#ak-saved h4 {
	margin: 16px 0 6px 0;
	color: var(--ak-green);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

#ak-saved .ak-muted {
	margin: 12px 0 0 0;
	color: var(--ak-text-2);
	font-size: 11.5px;
}

.ak-save-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 4px 0;
}

.ak-save-row input[type="text"],
.ak-save-row select,
.ak-saved-list .ak-rename {
	flex: 1 1 150px;
	min-width: 0;
	height: 30px;
	padding: 0 8px;
	box-sizing: border-box;
	background: var(--ak-navy-900);
	border: 1px solid var(--ak-line);
	border-radius: 6px;
	color: var(--ak-text);
	font: 500 12.5px var(--ak-font);
	outline: none;
}

.ak-save-row select {
	flex: 0 1 auto;
}

.ak-save-row input[type="text"]:focus,
.ak-saved-list .ak-rename:focus {
	border-color: var(--ak-green);
}

#ak-panel button.ak-primary,
#ak-saved button.ak-primary {
	background: var(--ak-green);
	border-color: var(--ak-green);
	color: var(--ak-navy-900);
	font-weight: 800;
}

#ak-panel button.ak-primary:hover,
#ak-saved button.ak-primary:hover {
	background: var(--ak-green-2);
}

#ak-saved button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 9px;
	border: 1px solid var(--ak-line);
	border-radius: 6px;
	background: transparent;
	color: var(--ak-text);
	font: 600 12px/1 var(--ak-font);
	white-space: nowrap;
	cursor: pointer;
}

#ak-saved button:hover {
	background: var(--ak-navy-600);
}

#ak-saved svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ak-saved-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ak-saved-list li {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 3px 0;
}

#ak-saved .ak-saved-list .ak-saved-open {
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-start;
	height: 34px;
	border-color: transparent;
	background: var(--ak-navy-800);
}

#ak-saved .ak-saved-list .ak-saved-open:hover {
	background: var(--ak-navy-600);
}

#ak-saved .ak-saved-list .ak-icon-only {
	padding: 0 6px;
	border-color: transparent;
	color: var(--ak-text-2);
}

#ak-saved .ak-saved-list .ak-icon-only:hover {
	color: var(--ak-text);
}

.ak-saved-name {
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
}

/* the colours a view was saved with: the points' colouring, ringed in the section's */
.ak-saved-colours {
	flex: 0 0 auto;
	width: 18px;
	height: 10px;
	margin-left: 8px;
	border-radius: 3px;
}

.ak-saved-open small {
	margin-left: auto;
	padding-left: 8px;
	color: var(--ak-text-2);
	font-weight: 500;
	font-size: 11px;
}

.ak-saved-list .ak-empty {
	color: var(--ak-text-2);
	font-size: 12px;
	padding: 4px 2px;
}

.ak-badge {
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 8px;
	background: var(--ak-green);
	color: var(--ak-navy-900);
	font: 800 10.5px/16px var(--ak-font);
	text-align: center;
}

.ak-badge[hidden] {
	display: none;
}

/* ------------------------------------------------------ coordinates, toast */

#ak-coords {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 18;
	padding: 6px 10px;
	background: rgba(7, 19, 31, 0.82);
	border: 1px solid var(--ak-line);
	border-radius: 6px;
	color: var(--ak-text);
	font: 500 12px/1.2 Consolas, 'Cascadia Mono', monospace;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

#ak-coords span {
	margin-right: 6px;
	color: var(--ak-green);
	font-family: var(--ak-font);
	font-weight: 800;
	font-size: 10.5px;
	letter-spacing: 0.1em;
}

#ak-coords i {
	margin: 0 4px;
	color: var(--ak-text-2);
	font-style: normal;
}

#ak-toast {
	position: absolute;
	left: 50%;
	bottom: 56px;
	z-index: 22;
	transform: translateX(-50%);
	max-width: calc(100% - 40px);
	padding: 9px 16px;
	background: var(--ak-navy);
	border: 1px solid var(--ak-line);
	border-left: 3px solid var(--ak-green);
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	color: var(--ak-text);
	font: 500 13px/1.4 var(--ak-font);
	pointer-events: none;
}

/* ------------------------------------------------------------ password */

#ak-lock {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 13, 22, 0.55);
	backdrop-filter: blur(3px);
}

#ak-lock form {
	width: min(380px, calc(100% - 32px));
	padding: 28px 28px 22px 28px;
	border-top: 3px solid var(--ak-green);
	text-align: center;
}

#ak-lock img {
	width: 190px;
}

.ak-lock-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
	color: var(--ak-green);
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ak-lock-eyebrow svg {
	width: 15px !important;
	height: 15px !important;
}

#ak-lock p {
	margin: 10px 0 16px 0;
	color: var(--ak-text-2);
	font-size: 13.5px;
	line-height: 1.5;
}

#ak-lock input {
	width: 100%;
	box-sizing: border-box;
	height: 40px;
	padding: 0 12px;
	background: var(--ak-navy-900);
	border: 1px solid var(--ak-line);
	border-radius: 6px;
	color: var(--ak-text);
	font: 500 15px var(--ak-font);
	outline: none;
}

#ak-lock input:focus {
	border-color: var(--ak-green);
}

#ak-lock button[type="submit"] {
	justify-content: center;
	width: 100%;
	height: 40px;
	margin-top: 10px;
	background: var(--ak-green);
	color: var(--ak-navy-900);
	font-weight: 800;
	font-size: 14px;
}

#ak-lock button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ak-lock-error {
	min-height: 18px;
	margin-top: 10px;
	color: #ff8a8a;
	font-size: 13px;
}

#ak-welcome .ak-hint.ak-error {
	color: #ffb0b0;
}

/* ------------------------------------------------------------ narrow */

/* the measuring icons read well on their own (with tooltips); they give up their
   labels first, the rest only on narrower screens */
@media (max-width: 1760px) {
	.ak-project {
		flex-basis: 210px;
	}

	.ak-group[data-label="Μέτρηση"] button span {
		display: none;
	}

	.ak-group[data-label="Μέτρηση"] button {
		padding: 0 7px !important;
	}
}

@media (max-width: 1400px) {
	.ak-group button:not(.ak-menu > button) span {
		display: none;
	}

	.ak-group button {
		padding: 0 7px !important;
	}
}

@media (max-width: 820px) {
	.ak-project {
		display: none;
	}

	/* no blur here: it would hold the menus below inside the scrolling bar */
	#ak-topbar {
		overflow-x: auto;
		background: rgba(7, 19, 31, 0.97);
		backdrop-filter: none;
		scrollbar-width: thin;
		scrollbar-color: var(--ak-line) transparent;
	}

	#ak-topbar::-webkit-scrollbar {
		height: 3px;
	}

	#ak-topbar::-webkit-scrollbar-thumb {
		background: var(--ak-line);
	}

	/* the section panel stops short of the position rail on the right */
	#ak-panel {
		left: 8px;
		right: 90px;
		width: auto;
		padding: 12px 12px 10px 12px;
	}

	#ak-rail {
		right: 8px;
	}

	.ak-toolbar {
		justify-content: flex-start;
	}

	.ak-menu > button span {
		display: none;
	}

	/* the bar scrolls sideways on a phone, which would clip its menus: they hang from
	   the screen instead */
	#ak-topbar .ak-dropdown {
		position: fixed;
		top: 62px;
		left: 8px;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}

	/* no room on a phone: the section is followed in the main view */
	#ak-inset,
	#ak-panel .ak-head-toggle {
		display: none !important;
	}
}
